Skip to content

Commit 2fe9881

Browse files
Add support for the JTAGICE3 programmer
This adds the configuration needed to support JTAGICE3. Note that burning a bootloader doesn't work yet, due to bugs in avrdude. Uploading sketches works as expected.
1 parent 18d178f commit 2fe9881

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

hardware/arduino/avr/programmers.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,31 @@ stk500.protocol=stk500
5656
stk500.program.protocol=stk500
5757
stk500.program.tool=avrdude
5858
stk500.program.extra_params=-P{serial.port}
59+
60+
# Note that until https://savannah.nongnu.org/bugs/?21954 and
61+
# https://savannah.nongnu.org/bugs/?42267 are fixed, burning a
62+
# bootloader does not work.
63+
# As a workaround, you can add -V to disable verification and modify
64+
# boards.txt to set all unused lock bits to 1 instead of 0.
65+
jtag3isp.name=Atmel JTAGICE3 (ISP mode)
66+
jtag3isp.communication=usb
67+
jtag3isp.protocol=jtag3isp
68+
jtag3isp.program.protocol=jtag3isp
69+
jtag3isp.program.tool=avrdude
70+
# Set a bitclock of 1us (the fastest supported value). This works for
71+
# microcontrollers running at 4Mhz and above.
72+
jtag3isp.program.extra_params=-B1
73+
74+
# Note that until https://savannah.nongnu.org/bugs/?21954 is fixed,
75+
# burning a bootloader does not work.
76+
# As a workaround, you can modify boards.txt to set all unused lock bits
77+
# to 1 instead of 0.
78+
jtag3.name=Atmel JTAGICE3 (JTAG mode)
79+
jtag3.communication=usb
80+
jtag3.protocol=jtag3
81+
jtag3.program.protocol=jtag3
82+
jtag3.program.tool=avrdude
83+
# Set a bitclock of 0.1us (the fastest supported value). This should
84+
# work regardless of the crystal used, since JTAG doesn't use the MCU
85+
# clock but dictates its own clock.
86+
jtag3.program.extra_params=-B0.1

0 commit comments

Comments
 (0)