Skip to main content
Associate III
April 21, 2026
Solved

CubeIDE 2.1.1 errors with CubeMX 6.16.1 generated project

  • April 21, 2026
  • 2 replies
  • 177 views

Hello,

I just created a new project for the STM32L542CEU MCU with CubeMX and I'm facing two issues with the imported project in CubeIDE.

First issue, rather easy to fix, some path for includes files are missing in the project.

Second issue, two include files are missing:

Description Resource Path Location Type
fatal error: ARMCM0.h: No such file or directory RTE_Components.h /CURRENT_SENSING/Drivers/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/_ARMCM0 line 17 C/C++ Problem
fatal error: irq_ctrl.h: No such file or directory os_tick_gtim.c /CURRENT_SENSING/Drivers/CMSIS/RTOS2/Source line 26 C/C++ Problem
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_systick.o] Error 1 CURRENT_SENSING C/C++ Problem
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_gtim.o] Error 1 CURRENT_SENSING C/C++ Problem
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_ptim.o] Error 1 CURRENT_SENSING C/C++ Problem
make: *** Waiting for unfinished jobs.... CURRENT_SENSING C/C++ Problem

Thanks in advance for your help.

Best answer by Mahmoud Ben Romdhane

Hello @zeboss49 

Further to your comment, I reproduced the behavior using STM32CubeMX 6.17.0 and the build finished without any errors.

MahmoudBenRomdhane_0-1776789028270.png

 

Thanks.

Mahmoud

2 replies

zeboss49Author
Associate III
April 21, 2026

Hello,

updating CubeMX to 6.17 does not solve the issues.

Technical Moderator
April 21, 2026

Hello @@zeboss49 

Let me thank you for posting.

For more investigation, could you please provide your Ioc.File.

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
zeboss49Author
Associate III
April 21, 2026

Please, find the IOC file as an attachment.

Thanks for the answer

 

zeboss49Author
Associate III
April 21, 2026

Hello,

issue is solved.

I mistakenly selected EWARM as the toolchain.

I've destroyed all the project at the except of the .ioc file, regenerated the code and now, all is OK.

Sorry for the annoyance.

Regards

Didier