Go Down

Topic: issue uploading to breadboard ATMEGA4809 via uno (Read 575 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

Go Up