Skip to main content
VISHAL1
Associate II
February 3, 2020
Question

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

  • February 3, 2020
  • 2 replies
  • 700 views

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

This topic has been closed for replies.

2 replies

KnarfB
Super User
February 3, 2020

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
February 3, 2020

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