Skip to main content
Lynn Linse
Associate III
Aug 19, 2020 9:03 PM UTC
Solved

In STM32CubeIDE, can I add python script to auto-run before compiler runs? To increment a BUILD number in *.H file.

In old AC6 workbench, I could add such python script as external tool to auto-build always before compiler runs. Now with STM32CubeIDE, I've found how to do manually with 'external tools' button. Can I add back to project to auto-run again?

This topic has been closed for replies.
TDK
TDKBest answer
Aug 19, 2020 10:27 PM UTC

You can add pre-build steps within the project properties.

STM32CubeIDE (Eclipse) support some global and project-level variables which can help here. But you could always just use absolute paths instead.

0693W000003Pp3DQAS.png

"If you feel a post has answered your question, please click ""Accept as Solution""."

1 reply

TDK
TDKBest answer
Aug 19, 2020 10:27 PM UTC

You can add pre-build steps within the project properties.

STM32CubeIDE (Eclipse) support some global and project-level variables which can help here. But you could always just use absolute paths instead.

0693W000003Pp3DQAS.png

"If you feel a post has answered your question, please click ""Accept as Solution""."