Codegeneration with STM32CubeMX deletes Keil µVision User Command
I discovered some strange behavior in the STM32CubeMX code generation for Keil µVision.
I created a project with STM32CubeMX that I compile using Keil µVision. In Keil µVision, I configured two user commands in the "Options for Target" dialog under "User" in the "After Build/Rebuild" section. These commands must be executed after the software has been compiled.
Whenever I regenerate the project in CubeMX due to configuration changes, the "After Build/Rebuild Run #2" command is always removed.
I then tested all commands and was able to narrow the issue down exclusively to "After Build/Rebuild Run #2".
Is this a bug in CubeMX, or do I need to change a setting somewhere to ensure that these commands are preserved?
Please also refer to the attached screenshots.
Best regards,
Kai Riek
Before running CubeMX:

After running CubeMX:

