Re: SW4STM32 or CubeMX to init STM32 device
Hi, Bernard:
I did this importing CubMX configuration project to SW4STM32. However, there are some issues for this to prevent it for real operation.
First, there is only Debug mode for build configuration for SW4STM32. The Release mode is gone.
Second, the files linking for this imported SW4STM32 project is very eazy to broke if you edit any proporities of project, such as includeing path.
In real practice, you create the SW4STM32 project with Cube HAL option and copied/pasted init codes sub-dir \Src, and \Inc generated by CubeMX to SW4STM32 project. You don’t need to copy drivers from CubeMX to SW4STM32 because there are generated by SW4STM32 Cube HAL. They are the same drivers.
But I have a big problem to do this way because Cube HAL option is disabled for F1 family, such as stm32f103c8 for SW4STM32 project. It works for F0 family, such as stm32f091cc. How can I fix this issue to use Cube HAL drivers for F1 devices?
By the way, where is the local location for cube fw STM32Cube_FW_F0_V1.1.0 after SW4STM32 downloading?
Junbo