Warren Gay
2017-03-14 14:14:41 UTC
Earlier I posted to the list about my attempt to use the f107 usb driver on
the stm32f103c8t6 MCU, which turned out to be inappropriate (no OTG support
for f103).
I later discovered an example using the st_usbfs_v1 driver. Using that, I
was able to get a modified USB CDC demo going, and later even under
FreeRTOS as well. The name of this driver (with "fs" in it) originally
caused me to doubt that I could use it for this purpose. But it seems to
work just fine as a polled driver. Within FreeRTOS, you just have to run
everything USB driver related from one thread.
My present question for the list:
*What is the difference between st_usbfs_v1.c and st_usbfs_v2.c? *
Based upon a diff and comments, it would appear that v2 was created to deal
with limitations of the Cortex-M0 unaligned copies (bytewise copies vs
words). Is that entirely it? I just want to verify that the v1 driver is my
best choice for the f103 (without forced alignment enabled).
Thanks, Warren
the stm32f103c8t6 MCU, which turned out to be inappropriate (no OTG support
for f103).
I later discovered an example using the st_usbfs_v1 driver. Using that, I
was able to get a modified USB CDC demo going, and later even under
FreeRTOS as well. The name of this driver (with "fs" in it) originally
caused me to doubt that I could use it for this purpose. But it seems to
work just fine as a polled driver. Within FreeRTOS, you just have to run
everything USB driver related from one thread.
My present question for the list:
*What is the difference between st_usbfs_v1.c and st_usbfs_v2.c? *
Based upon a diff and comments, it would appear that v2 was created to deal
with limitations of the Cortex-M0 unaligned copies (bytewise copies vs
words). Is that entirely it? I just want to verify that the v1 driver is my
best choice for the f103 (without forced alignment enabled).
Thanks, Warren