Skip to main content
Ian Day
Associate II
February 19, 2021
Solved

IOC file ordering

  • February 19, 2021
  • 2 replies
  • 3550 views

Hi, we use Git for source control and have notice that each time STM32CubeMX 6.1.1 saves the IOC file, the ordering of all the entries is changed. This makes it impossible to deal with in pull requests as you cannot tell if genuine changes have been made.

I've seen this reported before, and it was claimed that the IOC file should be saved in alphabetical order. It is not. The first few lines (after sorting the file before loading it) show as this after saving (and making NO changes):

#MicroXplorer Configuration settings - do not modify
PF7.GPIOParameters=GPIO_Label
PB13.GPIOParameters=GPIO_Label
PD12.GPIO_Label=PON_B9

This topic has been closed for replies.
Best answer by Ian Day

Hi, Just tried 6.2.0 and I can tell you that this version fixes the issue.

Thanks for coming back to me with that

2 replies

Khouloud OTHMAN
Associate
February 22, 2021

Hello @Ian Day​ ,

Thanks for your feedback. Actually I can't reproduce the issue from my side, the IOC file is alphabetically sorted.

Could you please detail more how did you reproduce to get this misbehavior. Also you can attach your .ioc and the .log files, they may be helpful to find root-cause of the issue.

Thanks in advance,

Khouloud.

Peter BENSCH
ST Technical Moderator
February 22, 2021

@Ian Day​ Would you please also provide information about the Java version you are using with the tools incorrectly saving the IOC?

Regards

/Peter

In order 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.
Ian Day
Ian DayAuthor
Associate II
February 22, 2021

Currently JAVA_HOME points to JDK 15.

java 15 2020-09-15

Java(TM) SE Runtime Environment (build 15+36-1562)

Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

LRibe.1
Visitor II
June 9, 2021

With a fresh install of STM32CubeIDE:

STM32CubeIDE Version: 1.6.1 Build: 9958_20210326_1446 (UTC)

STMicroelectronics   STM32CubeMX   6.2.1.202103241236   com.st.stm32cube.common.feature.mx

I'm experiencing this problem. Every time "Generate Code" is chosen, the .ioc file is unsorted.

Directory <C:\Users\...\.stm32cubemx> has no STM32CubeMX.log file.

Should I open a new forum post? This doesn't happen when generating code on the standalone STM32CubeMX program.

Thanks