Connect To The Com Port; Programming And Debugging; Programming The Target Using Medbg - Atmel ATmega328PB Xplained Mini User Manual

Avr 8-bit microcontrollers
Hide thumbs Also See for ATmega328PB Xplained Mini:
Table of Contents

Advertisement

1.3.2.

Connect to the COM Port

How to connect the ATmega328PB UART to a COM port.
All Xplained Mini boards have an embedded debugger (mEBDG) with a number of features, among them
a CDC/COM port, which enables the user to connect the ATmega328PB UART to the PC.
1.
Connect the Xplained Mini USB to the PC.
2.
A COM port named "mEDBG Virtual COM Port" will be available.
3.
Start a terminal emulator or other applications using the COM port, typical COM port settings are
9600 baud N81.
1.4.

Programming and Debugging

Programming and debugging the ATmega328PB Xplained Mini.
The target micro-controller is the ATmega328PB.
The mEDBG FW is running on the ATmega32U4.
1.4.1.

Programming the Target using mEDBG

Using the Embedded Debugger on the ATmega328PB Xplained Mini board to program the
ATmega328PB and setting the fuses.
1.
Connect the Xplained Mini USB to the PC.
2.
Go to Atmel Studio: click the Tools tab, select Device Programming, and select the connected
mEDBG as Tool with Device as ATmega328PB and Interface to SPI, click Apply.
3.
Select "Memories" and locate the source .hex or .elf file and click Program.
4.
NOTE: If a previous debug session was not closed by selecting "Disable debugWIRE and Close" in
the Debug menu, the DWEN fuse will be enabled and the target will still be in debug mode, i.e. it
will not be possible to program the target using the SPI.
Atmel ATmega328PB Xplained Mini [USER GUIDE]
Atmel-42469A-ATmega328PB-Xplained-Mini_User Guide-07/2015
4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATmega328PB Xplained Mini and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents