cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 6.15 does not regenerate code

ACC
Associate

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:

ACC_1-1763046480260.png

Any ideas? Am I missing something? Is anyone else facing this problem?

Alex

 

 

 

3 REPLIES 3
Ghofrane GSOURI
ST Employee

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. 

GhofraneGSOURI_0-1763047709329.png

Afterward, I configured additional peripherals (ADC1 and DAC), regenerated the code, and confirmed that everything is working as expected.

GhofraneGSOURI_1-1763047944121.png

So I suggest that you close the CubeMX and then delete  the following folder .stm32cubemx  (On Windows: C:\Users\<YourUsername>\.stm32cubemx)

GhofraneGSOURI_2-1763048073358.png

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.

ACC
Associate

Hello @Ghofrane GSOURI,

I'm using Windows 11.

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.