![Microchip Technology 8002264997 Скачать руководство пользователя страница 8](http://html1.mh-extra.com/html/microchip-technology/8002264997/8002264997_user-manual_1785806008.webp)
2.3.2
Debugging the Target Using mEDBG
Using the Embedded Debugger on the ATmega168PB Xplained Mini board to debug the ATmega168PB
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 ATmega168PB 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.
ATmega168PB Xplained Mini
©
2017 Microchip Technology Inc.
User Guide
DS50002636A-page 8