Firmware modification


#1

Hi.
I have modified the file grove_pi-v1_1.ino to add a new grove device (Chainable LED) but i suppose we have to compile it before updating via the described protocol.
How do we do that? I’d like to have a new grove_pi_firmware.hex file.

(I’m french, sorry if my english is not perfect)


#2

Hi,
Make sure that you have run this script https://github.com/DexterInd/GrovePi/blob/master/Script/install.sh.
Use the Arduino IDE on the VNC to compile the ino file. Change the programmer to “Raspberry Pi GPIO”. Connect the jumpers in the same way as when updating the firmware and press “Ctrl+Shift+U” to upload the sketch to the GrovePi.

For the manual method from the terminal, open the Arduino IDE, goto File -> Preferences, and select the verbose mode in compilation.

Compile the sketch and copy the path shown in the Arduino IDE on the bottom for the hex file.

Then run this:
avrdude -c gpio -p m328p -U flash:w:path_to_file.hex

to upload the code.

Thanks,
Karan


#3

Hi,
Make sure that you have run this script https://github.com/DexterInd/GrovePi/blob/master/Script/install.sh.
Use the Arduino IDE on the VNC to compile the ino file. Change the programmer to “Raspberry Pi GPIO”. Connect the jumpers in the same way as when updating the firmware and press “Ctrl+Shift+U” to upload the sketch to the GrovePi.

For the manual method from the terminal, open the Arduino IDE, goto File -> Preferences, and select the verbose mode in compilation.

Compile the sketch and copy the path shown in the Arduino IDE on the bottom for the hex file.

Then run this:
avrdude -c gpio -p m328p -U flash:w:path_to_file.hex

to upload the code.

Thanks,
Karan


#4

Thank you, it works


#5

Would you mind sharing the code?
Do you have a GitHub account?

I have a few other unsupported Grove sensors I am trying to get working.


#6

Yes I can share the code but I don’t have a GitHub account. I will post it here later.