Reading sw version loaded on Arduino

For general Flowcode discussion that does not belong in the other sections.
Post Reply
kramtlas
Posts: 25
http://meble-kuchenne.info.pl
Joined: Mon Dec 14, 2020 7:22 am
Has thanked: 7 times
Been thanked: 1 time

Reading sw version loaded on Arduino

Post by kramtlas »

Hi,
Is it possible to read back the sw version loaded onto an arduino?
I have an arduino that I coded some time ago to control a window circuit but, since then there have been several iterations
of this code i.e. WindowControl_1.fcfx, WndowControl_2.fcfx etc. and I would like to find out what is currently loaded if possible.
Regards

mnfisher
Valued Contributor
Posts: 1705
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 146 times
Been thanked: 798 times

Re: Reading sw version loaded on Arduino

Post by mnfisher »

Assuming you didn't set the lock bits - you can read the contents of flash using avrdude.

Code: Select all

avrdude -p atmega328p -c arduino -P <Your_Port> -b 115200 -U flash:r:arduino_flash_dump.hex:i
  
Then look through the hex looking for your version string .. "v1.2345 11/23" of you are lucky...

Martin

BenR
Matrix Staff
Posts: 1995
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 524 times
Been thanked: 711 times

Re: Reading sw version loaded on Arduino

Post by BenR »

Hello,

There's a component available under Storage called Auto Version ID which gives you the build number and the date/time of your build.

You would still have to display this information or output it on a UART etc but it provides a nice easy way to manage firmware versions.

Post Reply