2018-06-05 02:18 AM
Hello, everybody! I tried to generate initialization code for my STM32F103CB-based project with STM32CubeMX 4.25.1 and 1.6.1 version of firmware, and CubeMX generated Drivers/CMSIS/... folders, but they were empty, and TrueStudio got error:
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h:45:0,
from ../Inc/stm32f1xx_hal_conf.h:219, from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46, from ../Inc/rtc.h:47, from ..\Src\rtc.c:41:../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h:46:23: fatal error: stm32f1xx.h: No such file or directory &sharpinclude 'stm32f1xx.h'So, i filled these folders by the CMSIS files, generated by the older version of CubeMX, and they are OK, but Drivers\CMSIS\Device\ST\STM32F1xx\Include folder cleans every time, I regenerate code by CubeMX. Please fix this issue, or show me, where Iwas wrong.
Thank you!
#stm32cube---bug-report #cmsis2018-06-08 04:20 AM
Hi Sergey,
I tested with your ioc and all is generated correctly.
May be it a corrupted file in your env, please do a save as and change the project folder and try to generate from scratch
if it is ok just overwrite with your changes on the new project