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.)
How do I program a version number into my firmware?
Re: How do I program a version number into my firmware?
mzincali wrote: ↑Wed Nov 16, 2022 9:40 amI 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
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: How do I program a version number into my firmware?
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.
Code: Select all
version.txt
Re: How do I program a version number into my firmware?
Would that work for Platformio? Or is that only for esp-idf?Simply add one file in your project with version you want:
Who is online
Users browsing this forum: msfujino and 70 guests