cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube post code generation script

Moose
Visitor

Hey all.

As per tradition, my first post in this community will be a question.

In the same way that I can run pre- and post-build commands that is run when I build a project in STM32cube, is it possible to run a post code generation command when I generate code from the .ioc file?

- Moose

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Moose 

Welcome to ST Community

In STM32CubeMX and STM32CubeIDE, you will find fields labeled:

"User action, Before code generation"

"User action, After code generation"

These fields allow you to specify commands or scripts that will be executed:

Before code generation:
The command in the "Before code generation" field runs just before the code is generated from the .ioc file.
After code generation:
The command in the "After code generation" field runs immediately after the code is generated.

GhofraneGSOURI_0-1756454078752.png

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @Moose 

Welcome to ST Community

In STM32CubeMX and STM32CubeIDE, you will find fields labeled:

"User action, Before code generation"

"User action, After code generation"

These fields allow you to specify commands or scripts that will be executed:

Before code generation:
The command in the "Before code generation" field runs just before the code is generated from the .ioc file.
After code generation:
The command in the "After code generation" field runs immediately after the code is generated.

GhofraneGSOURI_0-1756454078752.png

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Glorious!

Exactly what I was looking for. Had missed the tabs in that view.

Many thanks! :)

- Moose