Skip to content

Hexabusplugjtagprogramming

gonium edited this page Aug 15, 2011 · 6 revisions

=== 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:

  1. 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!)

  2. 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.

Clone this wiki locally