I start with the Keil MDK-ARM. I'd like in my software had a function that returns version. Any as SW_ver() return
v1.32 build 1234
Where 1.32 is set manually as constant and build is automatic increment uVision has some support, where can I find an example of how to do it?
In the "User" options tab, call a script/app pre-build that creates/increments a file with build# or time/date stamp, etc. in it. The file created could be a single line include file, or a couple of lines describing a function.