I was wondering if anyone could shed some light on an elegant way to discover the application version from within the application. When using the http_update
example, we populate CONFIG_APPLICATION_VERSION
with an application version number. If that value is different from the application currently running, mcuboot updates the firmware.
Presumably mcuboot holds this value somewhere - does anyone know the mechanics of how this is accomplished? I would like to have access to this value in the application, but I don’t love the idea of having to keep track of it manually in a define
somewhere as well as in the prj.conf
since I’m bound to forget to update it at some point. Are the CONFIG
values available to the compilation process somehow, like you would do for compile-time defines? If so, is there an easy way to get these values from within application code?
Thanks for any help, I’m having difficulty getting my head around everything at the same time.