How do I program a version number into my firmware?
Posted: Wed Nov 16, 2022 9:40 am
by mzincali
I want this to show up in the startup log, after the partition table info or thereabouts.
I’m using PlatformIO and I don’t see how I can do this. Anyone know how?
(I know how to put a version number in my own code and print it. That will show up much later that the startup log.)
Re: How do I program a version number into my firmware?
Posted: Wed Nov 16, 2022 4:50 pm
by rudi ;-)
mzincali wrote: ↑Wed Nov 16, 2022 9:40 am
I want this to show up in the startup log, after the partition table info or thereabouts.
I’m using PlatformIO and I don’t see how I can do this. Anyone know how?
(I know how to put a version number in my own code and print it. That will show up much later that the startup log.)
check the
Custom bootloader examples and put your version message as "custom message" then in the
boot proc.
hope this helps
best wishes
Re: How do I program a version number into my firmware?
Posted: Thu Nov 17, 2022 2:09 am
by chegewara
Simply add one file in your project with version you want:
You have also few options in menuconfig to control version, assuming you are using esp-idf and not arduino framework.
Re: How do I program a version number into my firmware?
Posted: Sat Dec 03, 2022 9:43 am
by mzincali
Simply add one file in your project with version you want:
Would that work for Platformio? Or is that only for esp-idf?