Skip to content

Commit 29ad570

Browse files
Add slow mode for the JTAG3 ISP programmer
This uses a slower bitclock, allowing programming of parts < 4Mhz (like fresh 328 MCU's, which run at 1Mhz by default). For the JTAG version, this is not needed, since the JTAG clock completely drives the chip, regardless of the configured CPU clock.
1 parent 75017fd commit 29ad570

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

hardware/arduino/avr/programmers.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ stk500.program.extra_params=-P{serial.port}
8181
# bootloader does not work.
8282
# As a workaround, you can add -V to disable verification and modify
8383
# boards.txt to set all unused lock bits to 1 instead of 0.
84-
jtag3isp.name=Atmel JTAGICE3 (ISP mode)
84+
jtag3isp.name=Atmel JTAGICE3 (ISP mode, for chips at or above 4Mhz)
8585
jtag3isp.communication=usb
8686
jtag3isp.protocol=jtag3isp
8787
jtag3isp.program.protocol=jtag3isp
@@ -90,6 +90,20 @@ jtag3isp.program.tool=avrdude
9090
# microcontrollers running at 4Mhz and above.
9191
jtag3isp.program.extra_params=-B1
9292

93+
# Note that until https://savannah.nongnu.org/bugs/?21954 and
94+
# https://savannah.nongnu.org/bugs/?42267 are fixed, burning a
95+
# bootloader does not work.
96+
# As a workaround, you can add -V to disable verification and modify
97+
# boards.txt to set all unused lock bits to 1 instead of 0.
98+
jtag3ispslow.name=Atmel JTAGICE3 (ISP mode, for chips below 4Mhz)
99+
jtag3ispslow.communication=usb
100+
jtag3ispslow.protocol=jtag3isp
101+
jtag3ispslow.program.protocol=jtag3isp
102+
jtag3ispslow.program.tool=avrdude
103+
# Set a bitclock of 125us (the slowest supported value). This works for
104+
# microcontrollers running at 8kHz and above.
105+
jtag3ispslow.program.extra_params=-B125
106+
93107
# Note that until https://savannah.nongnu.org/bugs/?21954 is fixed,
94108
# burning a bootloader does not work.
95109
# As a workaround, you can modify boards.txt to set all unused lock bits

0 commit comments

Comments
 (0)