Skip to content

Instantly share code, notes, and snippets.

@vini2003
Last active November 1, 2019 00:28
Show Gist options
  • Select an option

  • Save vini2003/189f094c8fd83372f0c00a132db93477 to your computer and use it in GitHub Desktop.

Select an option

Save vini2003/189f094c8fd83372f0c00a132db93477 to your computer and use it in GitHub Desktop.

Firstly, you'll need:

Then, following the instructions in the screenshots ahead:

Create New Project

Device Selection

Main Window

Tools

External Tools

Title: Name

Command: ...\avrdude.exe

Arguments: -C"...\avrdude.conf" -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i

[WARN]: ... refers to the installation path of WinAVR's avrdude.exe.

[WARN]: check port in Device Manager, it won't always be COM4.

[WARN]: Use Output window means AVRDude will not open a CMD instance.

Options

Keyboard

Assign

Ok

F7

F8

You now own a happy little flashed ATmega2560!

@KrafT-2004
Copy link

KrafT-2004 commented Oct 31, 2019

If you have an Atmel ICE, you can debug via JTAG. The connections are fairly simple:
https://forum.arduino.cc/index.php?topic=191302.0
https://www.ba0sh1.com/blog/2013/12/31/jtag-adapter-arduino-micro/

Schematic

Note that the onboard ICSP connector does not support JTAG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment