Skip to main content
Associate II
February 5, 2025
Solved

Error occurred while regenerating the project in STM32CubeMX 6.13.0 after adding a custom folder path.

  • February 5, 2025
  • 1 reply
  • 2395 views

I'm using STM323H755ZIT6 NUCLEO board, STM32CubeMX 6.13.0 and STM32CubeIDE 1.17.0.

In my scenario, I created a project in STM32CubeMX 6.13.0 and generated the project. After that, I opened this project in STM32CubeIDE 1.17.0 and added paths for external folders in Paths and Symbols. Later, I edited the .IOC file in STM32CubeMX and tried to regenerate the project, but an error popup appeared.

NavaneethanN_0-1738741418408.png

ERROR POPUP

After this popup, I clicked the OK button, and STM32CubeMX showed 'Project Successfully Generated.' However, when I tried to build the project in STM32CubeIDE, it failed to build, and errors appeared, such as:

D:/NAVANEETHAN/CoffeeMaker/DisplayControl/Project/DisplayControl/CM7/Core/Src/main.c:116: undefined reference to `HAL_Init'

D:/NAVANEETHAN/InstalledSoftwares/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: 

A total of 40 errors were shown, all related to HAL and OS kernel functions.

I attached All errors in Errors.txt and IOC file


anyone support about this issue
Thank you

Best answer by NavaneethanN

The file ..\STM32CubeIDE\.project needs to be removed. Reopening the project in STM32CubeMX and regenerating the code will resolve the mentioned issue.

1 reply

NavaneethanNAuthorBest answer
Associate II
February 14, 2025

The file ..\STM32CubeIDE\.project needs to be removed. Reopening the project in STM32CubeMX and regenerating the code will resolve the mentioned issue.