Skip to content

Commit 8c38f27

Browse files
committed
Add ATmega32U4 option at Upload using Programmer
1 parent bbf4d27 commit 8c38f27

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

platforms/atmelavr_extra.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,30 @@ Configuration for the programmers:
123123
stk500v1
124124
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
125125
126+
* Arduino as ISP (ATmega32U4)
127+
128+
.. code-block:: ini
129+
130+
[env:program_via_ArduinoISP-ATmega32U4]
131+
platform = atmelavr
132+
framework = arduino
133+
upload_protocol = custom
134+
upload_port = SERIAL_PORT_HERE
135+
upload_speed = 19200
136+
upload_flags =
137+
-C
138+
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
139+
${platformio.packages_dir}/tool-avrdude/avrdude.conf
140+
-p
141+
$BOARD_MCU
142+
-P
143+
$UPLOAD_PORT
144+
-b
145+
$UPLOAD_SPEED
146+
-c
147+
arduino
148+
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
149+
126150
* USBasp
127151

128152
.. code-block:: ini

0 commit comments

Comments
 (0)