AnsweredAssumed Answered

Bug report: CubeMX CMSIS generation error

Question asked by Sergey Starovoitov on Jun 5, 2018
Latest reply on Jun 8, 2018 by Nawres GHARBI

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
 #include "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!