2026-04-21 7:04 AM - last edited on 2026-04-21 7:09 AM by Andrew Neil
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.
Solved! Go to Solution.
2026-04-21 9:31 AM
Hello @zeboss49
Further to your comment, I reproduced the behavior using STM32CubeMX 6.17.0 and the build finished without any errors.
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.
2026-04-21 7:19 AM - last edited on 2026-04-21 7:20 AM by Andrew Neil
Hello,
updating CubeMX to 6.17 does not solve the issues.
2026-04-21 8:11 AM
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.
2026-04-21 8:38 AM
2026-04-21 9:04 AM
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
2026-04-21 9:31 AM
Hello @zeboss49
Further to your comment, I reproduced the behavior using STM32CubeMX 6.17.0 and the build finished without any errors.
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.