kcuzner / avrdude

avrdude with a Linux SPI programmer type
http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/
107 stars 68 forks source link

Support multiple reset GPIOs by "extended_param" using linuxspi. #20

Closed brenkem closed 5 years ago

brenkem commented 5 years ago

I would like to attach multiple ATMEL uC to a single SPI at the same time. Therefore it is necessary to support a reset GPIO pin for every uC.

Can you please provide me an hint how we can use the "x" option (Pass to programmer.) to the linuxspi programmer.

Maybe this helps: https://github.com/kcuzner/avrdude/pull/3 https://github.com/kcuzner/avrdude/commit/5a4716efd11902151ced4cca670ed6937aa5b4db

Thanks.

brenkem commented 5 years ago

Different uC on the same SPI interface can be flashed one after one by using different configuration files with different reset pin definitions (see [1]). This different configuration files can be used to select each uC on the SPI interface according [2].

Done. Case closed.

[1]: /etc/avrdude_A.conf … reset = 90; …

/etc/avrdude_B.conf … reset = 197; …

[2]: avrdude -C avrdude_A.conf -c linuxspi -p … -P /dev/spidev4. … avrdude -C avrdude_B.conf -c linuxspi -p … -P /dev/spidev4. … avrdude -C avrdude_C.conf -c linuxspi -p … -P /dev/spidev4.* …