Debugging 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

5.
If the source file contains fuse settings, select "Production file" and upload the .elf file to program
the fuses.
6.
Select "Fuses" to program the fuses manually. Set the fuse(s) and click "Program". Recommended
fuse settings:
1.4.2.

Debugging the Target using mEDBG

Using the Embedded Debugger on the ATmega328PB Xplained Mini board to debug the ATmega328PB
via debugWIRE.
1.
Start Atmel Studio.
2.
Connect the Xplained Mini USB to the PC.
3.
Open your project.
4.
Click the "Project" tab and select the project "properties", click the "Tools" tab and select mEDBG
as debugger and debugWIRE as interface.
5.
Click the "Debug" tab and select "Start Debugging and Break".
6.
Atmel Studio will display an error message if the DWEN fuse in the ATmega328PB is not enabled,
click YES to make Studio set the fuse using the SPI interface.
7.
A debug session is started with a break in main, debugging can start.
8.
When exiting debug mode select "Disable debugWIRE and Close" in the Debug tab, this will
disable the DWEN fuse.
Atmel ATmega328PB Xplained Mini [USER GUIDE]
Atmel-42469A-ATmega328PB-Xplained-Mini_User Guide-07/2015
5

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?

Table of Contents