Skip to main content
VISHAL1
Associate II
Feb 3, 2020 4:04 AM UTC
Question

Is there any macros in SW4STM32 which shows the total number of builds happened from the generation of the code (Build number)?

I want to know the build number of a program in SW4STM32.

This topic has been closed for replies.

2 replies

KnarfB
Super User
Feb 3, 2020 7:16 AM UTC

I don't think that this is available. You can roll your own by adding a script in Project Properties > C/C++ Build Settings > Build Steps > Pre-build Steps / Post-build Steps. Providing a build number is more a task of source control / continous integration tools like Jenkins.

VISHAL1
VISHAL1Author
Associate II
Feb 3, 2020 7:56 AM UTC

how to add a pre-build step to auto increment build number stored in a txt file