How to Program an AVR DA MCU Using an Arduino Nano

preview_player
Показать описание
Using an Arduino Nano (or compatible board), a resistor, and a capacitor it is easy to program the AVR DA family MCU's with the Arduino IDE. In my case I'm using the AVR128DA64, but all the AVR DA MCU's are programmable this way.

Download El Tangas' jtag2updi:

Download Spence Konde's DxCore:

Programmer:
- Adruino Nano (or similar)
- 4.7K resistor on pin D6
- 10uF Capacitor between RST and GND

Get in touch with me:
----------------------------------
-----------------------------------

Timecodes:
0:00 Intro
0:57 Installing jtag2updi
2:08 Prepare your programmer
3:11 Install DxCore
5:05 Outro

#AVR128DA #Arduino IDE
Рекомендации по теме
Комментарии
Автор

In some of the shots of the Arduino Nano, the 4.7K resistor is on D5 instead D6. This is a continuity mistake not caught by the continuity supervisor (me!). Just to be clear; 4.7K resistor on *D6*!

DustinWatts
Автор

Thank you for the clear instructions. I recently had a similar problem with the new attiny412. Arduinos are very handy.

bwack
Автор

thanks a lot for teaching us how to program dx core. best regards

amernazirawan
Автор

Hi Dustin, I am using Arduino for uploading AVR128DA64, upload is fine and works, but i am struggling with debug in real-time of my AVR128DA64, please can you support how i can debug while using JTAG to UPDI? Thanks

abdulaziza
Автор

Hi, thank you for nice explanation how to make this working :)

michapoterek
Автор

Yes Pickit 4 is quite expensive but with Arduino Nano it can be a Bootloader for AVRDx using UART to UPDI.

esquireedilbertiimarcelino
Автор

I am trying to prgm AVR128DB64, should i use nobootload or optibootload? i tried both non is working,
avrdude: jtagmkII_program_disable(): bad response to leave progmode command: RSP_NO_TARGET_POWER

I am have powered all VDDs, plz support, Thanks

abdulaziza
Автор

Does this work with an Arduino Nano Every?

snehashakya
Автор

I assume most of these instructions work on the other UPDI-compatible chips?

I use pyupdi.py to program them which is easier you don't need a Arduino as a programmer, I use the "usb-serial" and 4.7k resistor. But I am sure the jtag2updi has more features such as debugging?

markxr
Автор

this looks a lot cheaper and easier than buying an MPLAB SNAP like i originally planned. I assume Arduino libraries like Wire, Serial, etc work as normal?
because i planned on basically building an Arduino board with one of these and have both Power and Serial (via FT232RL) over USB.
which also raises the question if the Serial connection could be used to directly upload sketches like a regular Arduino board. but i assume that would require a custom bootloader, right?

proxy
visit shbcf.ru