Some CubeMX commands don't work anymore.
I use the CubeMX command-line interface. Normally I put my script in a file, and run it like this:
java -jar "C:\path\to\STM32CubeMX.exe" -q "C:\path\to\myscript.txt"But before doing that, I test the script commands one-by-one in the interactive mode. That means, I start up CubeMX with the command line interface and I can see visually what happens upon each command I enter:
java -jar "C:\path\to\STM32CubeMX.exe" -iThe first command I usually issue then is to load an existing `ioc-file`:
config load "C:\path\to\my_cubemx_proj.ioc"Then I issue the following command:
set mode FREERTOS EnabledThis works. I can see immediately the green checkmark appearing next to `FREERTOS` in the Middleware section. The next thing I do is changing the Timebase Source in SYS from `SysTick` to `TIM1`:
set mode SYS TIM1 Timebase SourceThis used to work in the previous CubeMX version. But in CubeMX5 it doesn't have any effect. The following image illustrates what happens:
