Skip to content

Commit dc607bb

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 2fe9881 commit dc607bb

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
@@ -62,7 +62,7 @@ stk500.program.extra_params=-P{serial.port}
6262
# bootloader does not work.
6363
# As a workaround, you can add -V to disable verification and modify
6464
# boards.txt to set all unused lock bits to 1 instead of 0.
65-
jtag3isp.name=Atmel JTAGICE3 (ISP mode)
65+
jtag3isp.name=Atmel JTAGICE3 (ISP mode, for chips at or above 4Mhz)
6666
jtag3isp.communication=usb
6767
jtag3isp.protocol=jtag3isp
6868
jtag3isp.program.protocol=jtag3isp
@@ -71,6 +71,20 @@ jtag3isp.program.tool=avrdude
7171
# microcontrollers running at 4Mhz and above.
7272
jtag3isp.program.extra_params=-B1
7373

74+
# Note that until https://savannah.nongnu.org/bugs/?21954 and
75+
# https://savannah.nongnu.org/bugs/?42267 are fixed, burning a
76+
# bootloader does not work.
77+
# As a workaround, you can add -V to disable verification and modify
78+
# boards.txt to set all unused lock bits to 1 instead of 0.
79+
jtag3ispslow.name=Atmel JTAGICE3 (ISP mode, for chips below than 4Mhz)
80+
jtag3ispslow.communication=usb
81+
jtag3ispslow.protocol=jtag3isp
82+
jtag3ispslow.program.protocol=jtag3isp
83+
jtag3ispslow.program.tool=avrdude
84+
# Set a bitclock of 125us (the slowest supported value). This works for
85+
# microcontrollers running at 8kHz and above.
86+
jtag3ispslow.program.extra_params=-B125
87+
7488
# Note that until https://savannah.nongnu.org/bugs/?21954 is fixed,
7589
# burning a bootloader does not work.
7690
# As a workaround, you can modify boards.txt to set all unused lock bits

0 commit comments

Comments
 (0)