cancel
Showing results for 
Search instead for 
Did you mean: 

Where to apply interim patches?

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)

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

4 REPLIES 4
Pavel A.
Super User

You can define a post-generation command (script).

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?

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

 

Thank you. I'll mark that as a solution unless ST staff want to give a better answer.

A