Skip to main content
Andrei Chichak
Lead
May 6, 2025
Solved

Where to apply interim patches?

  • May 6, 2025
  • 2 replies
  • 528 views

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)

Best answer by KnarfB

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

 

2 replies

Pavel A.
Super User
May 6, 2025

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

Andrei Chichak
Lead
May 6, 2025

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?

KnarfB
KnarfBBest answer
Super User
May 7, 2025

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

 

Andrei Chichak
Lead
May 7, 2025

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

A