2025-11-13 7:16 AM
Hi all,
I recently updated the IDE to v1.19 and MX to v6.15.0, and the MX code generation is no longer working for me.
After some testing, I found out I can create new projects and code is (apparently) well generated. After this first generation, if i change anything in CubeMX and regenerate, the .ioc file is updated accordingly but the code is not changing at all.
My device is STM32U575VG (FW package 1.8.0).
As an example I created a project with just TIM1, generated the code, added TIM2 through CubeMX and renegerated.
I attach the first .ioc file (DELME_New_Project.ioc) and the updated (DELME_Updated_Project.ioc) for reference. The code has not been updated:
Any ideas? Am I missing something? Is anyone else facing this problem?
Alex
2025-11-13 7:22 AM - edited 2025-11-13 7:35 AM
Hello @ACC
Could you please provide more details about your OS.
I have tested your IOC file, "DELME_Updated_Project.ioc," and, as shown in the screenshot, the generated code is correct.
Afterward, I configured additional peripherals (ADC1 and DAC), regenerated the code, and confirmed that everything is working as expected.
So I suggest that you close the CubeMX and then delete the following folder .stm32cubemx (On Windows: C:\Users\<YourUsername>\.stm32cubemx)
Then Restart CubeMX and try again generate the code using your IOC and make sure to use a new workspace
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.
2025-11-13 7:33 AM
Hello @Ghofrane GSOURI,
I'm using Windows 11.
2025-11-13 7:40 AM
Hello @ACC
I performed the test using Windows 11 and MX is working correctly , which suggests that the issue may be specific to your environment. Please follow the steps outlined in my initial comment, and let me know your results. I will be awaiting 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.