You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While integrating TinyUSB into a project using MDK-ARM Keil with device support provided by the Keil Pack Manager, I ran into compatibility issues when not using the STM32 HAL.
Keil projects that rely on the older SPL-style CMSIS device headers (e.g., stm32f10x.h) rather than the HAL-based stm32f1xx.h do not compile out of the box with TinyUSB. This is because the SPL headers lack certain preprocesor macros expected by TinyUSB's STM32 fsdev driver.
My solution is just expansion of "fsdev_stm32.h" file, but I'm not sure about compatibility althrough full F1 MCU series. Also, I'm not sure if such thing is needed in library, as SPL libraries is deprecated and it will (I hope so) be somehow reimplemented in Keil also. But for now, this is my solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While integrating TinyUSB into a project using MDK-ARM Keil with device support provided by the Keil Pack Manager, I ran into compatibility issues when not using the STM32 HAL.
Keil projects that rely on the older SPL-style CMSIS device headers (e.g., stm32f10x.h) rather than the HAL-based stm32f1xx.h do not compile out of the box with TinyUSB. This is because the SPL headers lack certain preprocesor macros expected by TinyUSB's STM32 fsdev driver.
My solution is just expansion of "fsdev_stm32.h" file, but I'm not sure about compatibility althrough full F1 MCU series. Also, I'm not sure if such thing is needed in library, as SPL libraries is deprecated and it will (I hope so) be somehow reimplemented in Keil also. But for now, this is my solution.
Implementation (see full file in attachment):
fsdev_stm32.zip
Beta Was this translation helpful? Give feedback.
All reactions