0% found this document useful (0 votes)
385 views

How To Connect The ATmega328P Xplained Mini To The Arduino IDE

This document provides instructions for connecting the ATmega328P Xplained Mini to the Arduino IDE in 7 steps: 1) Download the Arduino IDE, 2) Upgrade the mEDBG firmware, 3) Set the bootloader fuses, 4) Program the Arduino bootloader, 5) Configure the Arduino IDE, 6) Get a sample application, and 7) Reset the mini and upload code using the Arduino IDE.

Uploaded by

phuceltn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
385 views

How To Connect The ATmega328P Xplained Mini To The Arduino IDE

This document provides instructions for connecting the ATmega328P Xplained Mini to the Arduino IDE in 7 steps: 1) Download the Arduino IDE, 2) Upgrade the mEDBG firmware, 3) Set the bootloader fuses, 4) Program the Arduino bootloader, 5) Configure the Arduino IDE, 6) Get a sample application, and 7) Reset the mini and upload code using the Arduino IDE.

Uploaded by

phuceltn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

How to connect the ATmega328P Xplained Mini to the Arduino IDE

1
2

Download the Arduino IDE from Arduino.cc


Upgrade the mEDBG firmware on the ATmega328P-XMINI to latest revision.
1. If you have an Atmel Studio release older than or equal to 6.2.1153
Download the medbgdebugger package from Atmel spaces and follow the instructions
http://spaces.atmel.com/gf/project/avr_xp_mini/frs/
2. Start Atmel Studio
3. Connect the ATmega328P-XMINI to the computer.
4. In Atmel Studio, select Tools Device programming (Ctrl Shift P)
5. In the Device Programming window, select Tool to mEDBG and click Apply, Studio will now ask you if
you want to upgrade.

14MAY2014/TB

Set the bootloader fuses in ATmega328P,


Select Bootloader Address as Reset Vector and select largest boot size
EXTENDED = 0xFF (valid)
HIGH = 0xD8 (valid)
LOW = 0xE0 (valid)

14MAY2014/TB

Program the ATmega328P with the Arduino bootloader


The bootloader hex file is located in the Arduino IDE folder:
/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex

Configure the Arduino IDE


1. Start the Arduino IDE
2. select the mEDBG COM port
3. Select board to Arduino Nano mega328P

14MAY2014/TB

Get your application


If you dont have an application yet try the Blink example:

14MAY2014/TB

Reset the Mini


Short ISP header pin 5 and 6

Note: Keep in reset until compiling done.

Use the Arduino IDE and program the ATmega328P with your program
Upload the code:

14MAY2014/TB

You might also like