Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ATmega32U4 option at Upload using Programmer #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be ${platformio.packages_dir}/tool-avrdude-megaavr/avrdude.conf?

Copy link
Author

@asukiaaa asukiaaa Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for chedking.
I just copy the config from Arduino as ISP.
Do you want to change all of ${platformio.packages_dir}/tool-avrdude/avrdude.conf to ${platformio.packages_dir}/tool-avrdude-megaavr/avrdude.conf?
If yes, I think that it is role of other PR.
https://github.com/platformio/platformio-docs/blob/develop/platforms/atmelavr_extra.rst

-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