You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect the programmer as shown with the RX pin directly to the UPDI pin of the microcontroller and the resistor between the RX and TX pins. IMPORTANT: The Reflow Plate must be powered externally via 12V with a minimum of 5A during this process.
I used a 10KΩ 0.5W resistor instead. This is even closer to the recommended value. 10KΩ is a common pull-up resistor value used in many electronics applications. It should work well for the UPDI interface.
Use the device manager to identify the name of the COM port representing your programmer. In my case it was /dev/tty/usb.serial-AH00XXXX on MacOS.
I then interacted with the microcontroller by running pymcuprog from a terminal. This command returns the Device ID (1E9651 for my ATmega4809) indicating the UPDI connection is working successfully.
Connecting to SerialUPDI
Pinging device...
Ping response: 1E9651
Done.
I used Arduino IDE to compile my C code and generate the hex file (turn on verbose output during compilation to know the location of your .ino.hex file). Now you can use pymcuprog to load the hex file onto the chip. It’s slower to program and inconvenient to drop to a terminal whenever you want to program the chip, but it works.
Connecting to SerialUPDI
Pinging device...
Ping response: 1E9651
Erasing device before writing from hex file...
Writing from hex file...
Writing flash...
Done.
The text was updated successfully, but these errors were encountered:
gotnull
changed the title
If anyone wants to build and compile with the atmega4809 chip.
If anyone wants to build and compile V3.0 with the ATmega4809 chip.
Aug 11, 2023
gotnull
changed the title
If anyone wants to build and compile V3.0 with the ATmega4809 chip.
If anyone wants to build and compile V3.0 with the ATmega4809 chip using an FT232R
Aug 11, 2023
gotnull
changed the title
If anyone wants to build and compile V3.0 with the ATmega4809 chip using an FT232R
If anyone wants to build and compile V3.0 with the ATmega4809 chip using an FT232R Breakout
Aug 11, 2023
Working with an ATmega4809
https://github.com/gotnull/Solder-Reflow-Plate/blob/main/Board%20Versions/70mm%20by%2050mm%20Ver3.0%20ATmega4809/Software/SW1.0_HW3.0_70by50mm.ino
To Prepare
To Program
Compile to ATmega4809
I followed this guide here: https://swharden.com/blog/2022-12-09-avr-programming/
Specifically this setup:
Connect the programmer as shown with the RX pin directly to the UPDI pin of the microcontroller and the resistor between the RX and TX pins. IMPORTANT: The Reflow Plate must be powered externally via 12V with a minimum of 5A during this process.
I used a 10KΩ 0.5W resistor instead. This is even closer to the recommended value. 10KΩ is a common pull-up resistor value used in many electronics applications. It should work well for the UPDI interface.
Ensure a modern version of Python is installed on your system
pip install pymcuprog
Use the device manager to identify the name of the COM port representing your programmer. In my case it was
/dev/tty/usb.serial-AH00XXXX
on MacOS.I then interacted with the microcontroller by running
pymcuprog
from a terminal. This command returns the Device ID (1E9651 for my ATmega4809) indicating the UPDI connection is working successfully.pymcuprog ping -d atmega4809 -t uart -u /dev/tty.usbserial-AH00XXXX
I used Arduino IDE to compile my C code and generate the hex file (turn on verbose output during compilation to know the location of your
.ino.hex
file). Now you can usepymcuprog
to load the hex file onto the chip. It’s slower to program and inconvenient to drop to a terminal whenever you want to program the chip, but it works.pymcuprog write -f SW1.0_HW3.0_70by50mm.ino.hex -d atmega4809 -t uart -u /dev/tty.usbserial-AH00XXXX --erase
The text was updated successfully, but these errors were encountered: