Hi guys,
I have a GrovePi attached to the Raspberry Pi, which I want to flash remotely through a remote agent. Thing is, the GrovePi can only be flashed with the gpio
programmer, which unfortunately doesn’t seem to be an option when triggering the flashing process within PIO IDE. When I choose the gpio
option within PIO IDE I get:
avrdude: Can't find programmer id "gpio"
Also, there’s a custom set of fuses I need to set and there isn’t much on your documentation to help me understand how I can override the defaults within an extra_script.py
file.
Just so you know, this is how I flash the firmware onto the GrovePi using a Raspberry Pi:
avrdude -c gpio -p m328p -U lfuse:w:0xFF:m
avrdude -c gpio -p m328p -U hfuse:w:0xDA:m
avrdude -c gpio -p m328p -U efuse:w:0x05:m
avrdude -c gpio -p m328p -U flash:w:grove_pi_firmware.hex
And the configuration file for gpio
programmer, which I’ve extracted from /etc/avrdude.conf
, looks like this:
programmer
id = "gpio";
desc = "Use sysfs interface to bitbang GPIO lines";
type = gpio;
reset = 8;
sck = 11;
mosi = 10;
miso = 9;
;
I looked over other posts here on this community, but it didn’t help me understand what needs to be done and how. Could anyone show me exactly what is needed to get this going?
Thank you!