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.
ERROR POPUPERROR 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


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.    

Thanks for support.

View solution in original post

5 REPLIES 5

@NavaneethanN wrote:

 an error popup appeared.
ERROR POPUPERROR POPUP


It tells you to check that log file - so did you?

Souhaib MAZHOUD
ST Employee

Hello @NavaneethanN 

Could you provide your IOC file in order to further investigate the issue?

KR, Souhaib

Hi @Souhaib MAZHOUD 

i attached the IOC file

@Andrew Neil 

yeah, but i couldn't find anything bro

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.    

Thanks for support.