2025-05-06 2:50 PM
If I find a bug in CubeIDE/CubeMX's code generation (like not turning on power to SDMMC), is there somewhere on my system that I can alter the boiler-plate code that is used to generate the project until the correction comes out in a future release?
Thanks,
Andrei (from The Great White North)
Solved! Go to Solution.
2025-05-06 10:12 PM
You're correct, it should be mentioned in the STM32CubeMX User Manual, but it is not (February 2025 UM1718 Rev 4).
You enter a path-qualified shell command that will be executed. Probably a shell script containing patch etc.
hth
KnarfB
2025-05-06 3:05 PM
You can define a post-generation command (script).
2025-05-06 3:17 PM
I see that there is an "After Code Generation" box in Project Manager/User Actions.
Any hints as to how to use it? sed scripts? awk? Is there any documentation to follow? ST videos?
2025-05-06 10:12 PM
You're correct, it should be mentioned in the STM32CubeMX User Manual, but it is not (February 2025 UM1718 Rev 4).
You enter a path-qualified shell command that will be executed. Probably a shell script containing patch etc.
hth
KnarfB
2025-05-07 11:02 AM
Thank you. I'll mark that as a solution unless ST staff want to give a better answer.
A