Skip to content

Commit

Permalink
Add ATmega32U4 option at Upload using Programmer
Browse files Browse the repository at this point in the history
  • Loading branch information
asukiaaa committed Feb 24, 2022
1 parent bbf4d27 commit 8c38f27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions platforms/atmelavr_extra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,30 @@ Configuration for the programmers:
stk500v1
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
* Arduino as ISP (ATmega32U4)

.. code-block:: ini
[env:program_via_ArduinoISP-ATmega32U4]
platform = atmelavr
framework = arduino
upload_protocol = custom
upload_port = SERIAL_PORT_HERE
upload_speed = 19200
upload_flags =
-C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-b
$UPLOAD_SPEED
-c
arduino
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
* USBasp

.. code-block:: ini
Expand Down

0 comments on commit 8c38f27

Please sign in to comment.