Getting started with Arduino and Mega 4808

  1. Install the MCUdude/MegaCoreX in Arduino

Open Arduino File → Preferences

Type in Additional Boards Manager URLs this URL: https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json

Now open Tools → Board → Boardsmanager and search for MegaCoreX and install it.

2. Get a UPDI programmer. You can make it from an Arduino Nano ElTangas/jtag2updi

Here you can read how to build your own UPDI programmer for the megaAVR 0-series.

3. Get a Mega 4808 Board and flash it over the UPDI Pin.

Here you can read how to build your own Mega 4808 minimal board.

Choose the right board under tools and set your configurations

You can set the CPU clock. I use 5 MHz because this is the highest CPU clock which can be selected for a 1.8V Power Supply. You can also enable the BOD (brown out detection) and select the BOD voltage. For the Mega 4808 in a 32 pin package please use 32 pin standard pinout. It is also possible to choose the usage of the reset pin. You can use it as GPIO or reset pin. There is also a bootloader available. You can choose the UART where you want to flash it. To burn the bootloader you need to click on the burn bootloder button. Please choose also the COM Port of your programmer.

Select the JTAG2UPDI programmer if you use the JTAG2UPDI Arduino Nano build.

Connect the 5V Power supply, ground and the UPDI pin of the Mega 4808 to your UPDI Programmer.

Flashing the code over the button upload using programmer


Other posts about Mega 4808