cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX random sorting in .ioc file

jeremi
Associate II

I just realized STM32CubeMX Version 6.0.1 no longer sorts and groups the settings in .ioc file in a predictable way. This makes it very difficult to follow the changes with tools like `git diff`.

#MicroXplorer Configuration settings - do not modify
PA11.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
Bdma.ADC3.0.PeriphInc=DMA_PINC_DISABLE
VP_TIM5_VS_ClockSourceINT.Mode=Internal
Dma.SPI1_TX.0.PeriphInc=DMA_PINC_DISABLE
Bdma.Request0=ADC3
SPI1.VirtualType=VM_MASTER
...

As a workaround one has to sort the lines manually: `sort < File.ioc > FileSorted.ioc`.

Please, please revert to the old behavior

13 REPLIES 13
FS.1
Associate III

Hi,

here is a file.

When I open this in CubeIDE 1.4.2 (containing CubeMX 6.0.1) and make PA4 a GPIO_Analog, it results in the (incomplete) Diff shown above.

Kind regards

Hi FS.1,

Normally Pin numbering is done from scratch at every code generation, thus these changes in the .ioc file when assigning a signal to a new pin.

Regards,

Khouloud.

FS.1
Associate III

Hi,

yes, it seems like it was done on purpose. However, given, more and more people are using version control systems and this behaviour somewhat breaks the purpose of version control systems, it might be something to reconsider in some future version.

Kind regards

LRibe.1
Associate

I'm experiencing the same problem if I choose "Generate Code" inside STM32CubeIDE v1.6.1.

More recent post:

https://community.st.com/s/question/0D53W00000aJ7yLSAS