2015-03-31 01:34 PM
Hi!
How to reproduce 1) Save copy of .ioc file. 2) Open project in CubeMx. 3) Don't change anything. Just save project 4) Compare file whit saved copy. You will found many differences like this-PA9.GPIOParameters=GPIO_ModeDefaultOutputPP,GPIO_Label,GPIO_Speed,GPIO_PuPd
+PA9.GPIOParameters=GPIO_Label,GPIO_ModeDefaultOutputPP,GPIO_Speed,GPIO_PuPd -PC1.GPIOParameters=GPIO_ModeDefaultOutputPP,GPIO_Label,GPIO_Speed,GPIO_PuPd +PC1.GPIOParameters=GPIO_Label,GPIO_ModeDefaultOutputPP,GPIO_Speed,GPIO_PuPd -PC4.GPIOParameters=GPIO_ModeDefaultOutputPP,GPIO_Label,GPIO_Speed,GPIO_PuPd +PC4.GPIOParameters=GPIO_Label,GPIO_ModeDefaultOutputPP,GPIO_Speed,GPIO_PuPd Cubemx change order of items in list in random. This is very bad for source control. This is source for merge problems in team work.2015-03-31 10:53 PM
I don't think they consider that people use source control because they update the time stamps on generated files even when none of the contents have changed so you have to look at every file to see if there was a ''real'' change or not after generating.
2015-04-01 12:52 AM
Hi,
The order of parameters doesn't impact the generated code. You can check that the generated code is the same based on both .ioc files.Anyway, there will be an action to fix this.-Mayla-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.
2015-04-01 01:00 AM
Sorry, I meant to say that the date/time inside the generated files is changed even when the generated code is the same rather than the file's timestamp has changed (which it does, anyway). So all the files are needlessly altered every time you generate them even if, say, only 1 has real altered content. It's a real pain from the source code control side of things.
2015-04-01 06:09 AM
If order not important, please dont change it. For sample, sort parameters before save. This is real pain if two developers change different parameters to merge this changes. You must resolve conflicts on every parameters list. And please don't write current time to file!
This useless information mark file as changed on every code generation.2015-04-07 07:58 AM
Hello,
We are taking into account your request to remove timestamps and keep parameters order in the ioc file. To be delivered asap in a next release. Best regards2015-07-01 02:52 AM
Hello your request has been solved in current release: STM32CubeMX 4.8