cancel
Showing results for 
Search instead for 
Did you mean: 

Changes made in CubeMX 6.16.1 not seen by CubeIDE

Baris_DSP
Associate II

Hello,

I searched on Google but I don't know if anyone has encountered this problem before. As we know, CubeMx and Cube IDE were recently released as two separate programs. I think this error might be related to that.

The error is this: I open a project I created in CubeMx in the IDE and upload it to the chip; there's no problem up to this point. However, whenever I make an update in CubeMx, the entire update isn't reflected in the IDE (or rather, in main.c). If there were no updates at all, I would look for the problem elsewhere, but some of the configuration settings are transferred to the IDE while others are not. The most recent example I experienced was that changes to the ARR and Prescaler registers of the TIMER module were transferred to the IDE, but the changes to the PWM (CCR1) register remained the same. In this case, I had to manually change the relevant value in main.c (and it was quite difficult to notice).

Look, the main problem here is that we developers ultimately trust STM and, consequently, their programs. Therefore, we usually look for the first fault in ourselves. However, in such a situation, if we don't receive an error message, it becomes impossible to find the fault.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

Also make sure you press Enter or click away after changing the value so that the IOC is saved with the new value. If your cursor is still in the text box, the value hasn't been changed.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

5 REPLIES 5
TDK
Super User

Use the Generate Code button in CubeMX after making the changes in order for the changes to be reflected in the code. This is not done automatically.

If you think this is not happening, in order for it to be replicated:

  • provide the IOC file you're using.
  • list the changes you're making.
  • list the things in the code that are not updated after Generate Code is done.
If you feel a post has answered your question, please click "Accept as Solution".

The problem I'm describing persists even after I click the "Generate Code" button, CubeMX tells me the job is complete, and then I go back to the IDE and refresh the entire project. In other words, as far as I know, CubeMX updates the folder located in the file path.

Screenshots are attached.

Of the three registry changes I made in CubeMX, two are successfully transferred to the IDE, but one is not.

Thank you.

 

Code Generation ok.jpg

 

CubeMx.jpg

 

CubeIDE.jpg

Please include your IOC file.

If you feel a post has answered your question, please click "Accept as Solution".
TDK
Super User

Also make sure you press Enter or click away after changing the value so that the IOC is saved with the new value. If your cursor is still in the text box, the value hasn't been changed.

If you feel a post has answered your question, please click "Accept as Solution".

Yes, after entering each new value and pressing Enter, the IOC was updated and the problem was solved.

Thank you.