Question
CubeMX code generation is not idempotent (different output when re-run)
CubeMX produces different results when re-running code generation without any changes applied.
Steps to reproduce:
- Create a CubeMX project. I'm using all default settings, except for STM32CubeIDE as Toolchain / IDE.
- Run code generation
- Save commit output to git
- Run code generation again
- Observe these differences:
git diff --stat
test1/.cproject | 2 +-
test1/.mxproject | 16 ++++++++--------
test1/STM32F413ZHTX_FLASH.ld | 4 ++--The differences appear to just be due to shuffling things around and adding whitespace, but it would be best if the tool behaved more predictably and wouldn't introduce all this unnecessary noise into project history.
System info:
- OS : Ubuntu 20.04
- STM32CubeMX version: 6.0.1
