2026-01-05 10:33 AM - last edited on 2026-01-05 10:45 AM by Andrew Neil
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.
Solved! Go to Solution.
2026-01-05 12:49 PM
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.
2026-01-05 10:38 AM - edited 2026-01-05 10:39 AM
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:
2026-01-05 12:01 PM
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.
2026-01-05 12:31 PM
Please include your IOC file.
2026-01-05 12:49 PM
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.
2026-01-05 11:08 PM
Yes, after entering each new value and pressing Enter, the IOC was updated and the problem was solved.
Thank you.