2013-06-12 07:34 AM
I am brand new to USB development. I am using the STM32F103 in a new prototype board and keil tools to develop with. During my search all over the internet for information and examples, I came across the following quote found here
''As far as i remember there are some hardware issues with the stm32f1xx where some buffers/ram area are common for usb and can, so practically it is impossible to use usb and can at the same time...'' First of all, is this true because my application needs both CAN and USB? Secondly, if not true, can someone please show me some actual code on how to initialize the USB device so I can connect my prototype board to a PC and send and receive data via the USB? Thanks. #usb-can-stm32f2013-06-12 08:09 AM
It is true, they share a common 512 byte buffer, and pins. Review the functional diagram if you doubt.
The F105/107 ''Connectivity'' parts are different, and have provision for both.2013-06-12 08:21 AM
you will have to use an F3 or F4.
RM0008 page 629
In low, medium-, high- and XL-density devices the USB and CAN share a dedicated 512-byte SRAM memory for data transmission and reception, and so they cannot be usedconcurrently (the shared SRAM is accessed through CAN and USB exclusively). The USBand CAN can be used in the same application but not at the same time.
2013-06-12 08:35 AM
Why didn't I see that! Sorry for my oversight everyone. Thanks for your answers. Now what do I do?
2013-06-12 09:05 AM
Now what do I do?
There's always eBay, half a dozen STM32F107 boards there. Also some nice F207 ones, with