2026-05-12 12:48 AM - last edited on 2026-05-12 1:58 AM by Andrew Neil
When using the IOC file in the attachment to generate code with an operating system, MDK-ARM V5.32 is selected. It is found that the directory ..\Middlewares\Third_Party\FreeRTOS\Source\portable\GCC is missing, resulting in compilation failure in Keil.
2026-05-12 1:19 AM
Hello @XUFEI
I am checking this behavior. I will get back to you ASAP.
THX
Ghofrane
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-05-12 5:37 PM
Supplementary Information: The version of STM32CUBE MX used is 6.15.0
2026-05-13 12:40 AM
Hello @XUFEI
Which compiler version are you using? Are you using Compiler 6?
I will be waiting for your feedback.
THX
Ghofrane
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-05-13 2:26 AM
Yes, I am using Compiler 6
2026-05-13 2:32 AM
When I generate code using the attached IOC file, the directory of this GCC file (which I added manually) will be deleted automatically.
2026-05-13 2:34 AM
Why are you using GCC files with Keil / MDK-ARM ?
2026-05-13 7:22 AM
Hello @XUFEI
Thank you for your contribution .
After checking internally , I found that this issue has already been forwarded to the development team under ticket #0061432.
Regarding your observation in your previous comment:
This is the expected behavior in CubeMX. If you add the GCC folder manually inside the generated project structure, it will be removed during code regeneration. To avoid this, please do not regenerate the project after adding the GCC folder manually.
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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.