2021-04-04 03:32 AM
The errors are like this one:
In file included from C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:131,
from C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h:30,
from C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h:29,
from C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Core/Inc/stm32f1xx_hal_conf.h:237,
from C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
from ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c:36:
C:/Users/maria/STM32CubeIDE/workspace_1.3.0/led_*****/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h:132:10: fatal error: core_cm3.h: No such file or directory
132 | #include "core_cm3.h"
| ^~~~~~~~~~~~
compilation terminated.
I'll appreciate the help :)
2021-04-05 02:08 AM
Hello @Maria Guimarães
Thanks for your post,
I have check it with the latest CubeIDE version and I did not reproduce the issue, could you please install the 1.6.1 version and tell me if problem was fixed or not?
Thanks, Khouloud
2021-06-21 01:01 AM
I think I got something very similar.
When I tried to build my project for NUCLEO-F103RB, the first error is the absence of core_cm3.h (called by an #include statement in the file "stm32f103xb.h"). I guess that results from certain damage of firmware package, is that correct?
2021-06-21 01:47 AM
Welp, it seemed a package problem. I deleted all firmware packages (for F1 series) and reinstalled them, then everything worked out. For STM32CubeIDE 1.3.0, I would suggest you not to unzip the package with IDE itself (doing so avoids some strange mistakes, just use 7-zip). Hope that helps...