cancel
Showing results for 
Search instead for 
Did you mean: 

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

NavaneethanN
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
NavaneethanN
Associate II

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

View solution in original post

1 REPLY 1
NavaneethanN
Associate II

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