Hello Karan - just to make certain, I cloned the repository again using this command:
git clone https://github.com/DexterInd/GrovePi.git
The content of the file GrovePi/Firmware/version.txt is 1.2.2
I ran the Python program to check the firmware 10 times in a row before running the firmware update and in all case, the output is the same as I shared above.
The output of running the firmware update is:
Updating the GrovePi firmware
Do you want to update the firmware? [y,n]y
Make sure that GrovePi is connected to Raspberry Pi
Firmware found
Connect the jumper to the Reset pin and Press any key to start firmware update
. . .
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "grove_pi_firmware.hex"
avrdude: input file grove_pi_firmware.hex auto detected as Intel Hex
avrdude: writing flash (14480 bytes):
Writing | ################################################## | 100% 14.57s
avrdude: 14480 bytes of flash written
avrdude: verifying flash memory against grove_pi_firmware.hex:
avrdude: load data flash data from input file grove_pi_firmware.hex:
avrdude: input file grove_pi_firmware.hex auto detected as Intel Hex
avrdude: input file grove_pi_firmware.hex contains 14480 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 13.38s
avrdude: verifying …
avrdude: 14480 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
I rebooted my RPi and I ran the Python program to check the firmware 10 times in a row after running the firmware update and in all case, the output is the same as I shared above.
Thanks
David