-
Notifications
You must be signed in to change notification settings - Fork 15
Hexabusplugjtagprogramming
=== Use JTAG to program the HexaBus Plug
The plug offers a combined JTAG- and Serial interface connector. It is the micromatch connector on the left side of the low voltage PCB.
=== Using AVRDude
The ATMega1284 can be programmed using the JTAG interface and avrdude. You can use
$ /usr/local/bin/avrdude -c jtag2 -P usb -p atmega1284p -U flash:w:Hexabus-Socket.hex -F
to program the device. You need to consider two points here:
-
The atmega1284 has currently no definition in the avrdude.conf. Fortunately, it is almost identical to the definition of the atmega1284p, but has a different device signature. Either you patch your avrdude.conf or use the
-F
paramater (as above). This will disable the signature check (but please be careful!) -
Make sure you use a recent version of avrdude. The hex file needs more than 16 bit for adressing, which is only implemented in newer versions of avrdude. I am using 5.10, which is working fine. See also [https://github.com/mysmartgrid/hexabus/issues/9] for an in-depth discussion.