2023-12-22 01:46 AM
I open project which was created with CubeMX in version 6.8.0 and get pop-up window:
I click continue and project opens but when I just save project even without changing anyting Cube version for the project changes to 6.10.0.
I can see the change in .ioc file immediately:
How can prevent CubeMX from changing version?
Solved! Go to Solution.
2023-12-22 04:52 AM
> If it still changes version to newer...
As I said, Continue does not refer to the version number of CubeMX, but to the firmware version. As long as you use the previous (frozen) firmware, the generated programme will also remain identical.
When you generate code, the project is automatically saved. This actually makes sense so that the generated source code framework matches the IOC that is then saved. The CubeMX version has no effect on the generated code and does not appear there.
Regards
/Peter
2023-12-22 04:34 AM
Well, that looks like a philosophical question.
CubeMX recognises that a newer firmware may be available and therefore offers to migrate. A click on Continue then continues the project with the previous firmware version.
However, as soon as you save the project, the current version number of CubeMX is written to the IOC, even if no other changes have been made.
If you want the IOC to remain unchanged, you should not save the project.
Does it answer your question?
Regards
/Peter
2023-12-22 04:45 AM
Thank you for answering
If I choose continue then I expect project to stay compatible with last Cube version as proposed by Cube with "continue" option. I think that's the purpose of "Continue" option. If it still changes version to newer even If I choose "Continue" then what's the purpose of this option?
Also even if I don't save the project but just generate code it still changes CubeMX version to newer.
For me particularly it isn't a problem at all but my organisation policy is to not upgrade CubeMX version for existing projects.
So it is not answering my question unfortunately :(
2023-12-22 04:52 AM
> If it still changes version to newer...
As I said, Continue does not refer to the version number of CubeMX, but to the firmware version. As long as you use the previous (frozen) firmware, the generated programme will also remain identical.
When you generate code, the project is automatically saved. This actually makes sense so that the generated source code framework matches the IOC that is then saved. The CubeMX version has no effect on the generated code and does not appear there.
Regards
/Peter
2023-12-22 04:58 AM
Ok, now I get it
It was just confusing since in prompt window there is information of staying compatible also with CubeMX version and because earlier I haven't have such case that CubeMX version is changed in .ioc and because my collogues which are working on the same file also don't have it changed.
But I am not sure if they have version 6.10 installed.
Anyway, thanks for answering me.