Closed brenkem closed 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.* …
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.