2.3.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 ISP interface.
7.
A debug session is started with a break in main, the debugging can start.
8.
To exit debug mode, select "Disable debugWIRE and Close" in the Debug tab. This will disable the
DWEN fuse.
©
2017 Microchip Technology Inc.
ATmega328PB Xplained Mini
User Guide
DS50002660A-page 8
Need help?
Do you have a question about the ATmega328PB Xplained Mini and is the answer not in the manual?