Go Down

Topic: issue uploading to breadboard ATMEGA4809 via uno (Read 959 times) previous topic - next topic

samyoue

#15
Mar 14, 2019, 01:52 pm Last Edit: Mar 14, 2019, 01:53 pm by samyoue Reason: missed link to second tutorial
erm I'll try lol

  • Follow this tutorial to setup your Uno as a UPDI programmer
  • Don't forget to disable auto reset function on the Uno programmer
  • add megaavr support (4809 support) in your arduino IDE by installing "Arduino UNO WiFi Rev2" in board manager.
  • Follow this tutorial to adapt it for 4809 on a breadboard
  • connect your Uno programmer 5v and gnd to your 4809
  • connect pin 6 of your Uno programmer to the UPDI pin on your 4809 chip (chip pin 41)
  • in Arduino IDE choose "Uno Wifi rev 2" (or custom name you set in boards.txt if you changed it) as your board
  • choose "registers emulation: None (ATMEGA4809)"
  • upload your sketch as normal.

Don't forget to check "C:\Users\*WINUSER*\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.25\variants\uno2018\pins_arduino.h" to see the pin mappings (not sure what path it would be on a Mac)

thats all I can remember, hopefully this will get you up and running.

If you get errors uploading try disconnecting usb and reconnecting...

Sam

samyoue

Also worth noting that if you are using TQFP - DIP adapter the top left pins go like this
DIP - CHIP
1 - 43
2 - 44
3 - 45
4 - 46
5 - 47
6 - 48
7 - 1
8 - 2
...
23 - 17
24 - 18

and then the right side of the adapter goes (from bottom right to top right) 19-42


Sam

Igor_TA

Hi A_neves!

I recently wrote an article on the connection and programming of "new" Attiny and Atmega microcontrollers using UPDI.
https://npk-stn.ru/2019/07/19/simple_programming_attiny414_via_updi/?lang=en
 
This article also reviewed a programmer with a valuable <1 $. A detailed diagram of the connection of the programmer to the microcontroller is reviewed and described.

Maybe this article will help you than any!

pert

This article also reviewed a programmer with a valuable <1 $. A detailed diagram of the connection of the programmer to the microcontroller is reviewed and described.
You made an error in your diagram. You have the 4K7 resistor connected to the 3.3 V pin instead of the TX pin. You have the the TX pin connected directly to the UPDI pin on the microcontroller instead of having it going through the resistor. You don't have the RX pin connected at all.

I hope you will fix this soon so that it doesn't cause confusion for the people who read your tutorial and try to use your wiring diagram.

Igor_TA

You made an error in your diagram. You have the 4K7 resistor connected to the 3.3 V pin instead of the TX pin. You have the the TX pin connected directly to the UPDI pin on the microcontroller instead of having it going through the resistor. You don't have the RX pin connected at all.

I hope you will fix this soon so that it doesn't cause confusion for the people who read your tutorial and try to use your wiring diagram.
Thank you very much for the error found! In the near future I will eliminate this error.

Igor_TA



Go Up