4.1 On-Board Debugger Overview

PIC16F17146 Curiosity Nano contains an on-board debugger for programming and debugging. The on-board debugger is a composite USB device consisting of several interfaces:
  • A debugger that can program and debug the PIC16F17146 in MPLAB® X IDE
  • A mass storage device that allows drag-and-drop programming of the PIC16F17146
  • A virtual serial port (CDC) that is connected to a Universal Asynchronous Receiver/Transmitter (UART) on the PIC16F17146 and provides an easy way to communicate with the target application through terminal software
  • A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize program flow

The on-board debugger controls a Power and Status LED (marked PS) on the PIC16F17146 Curiosity Nano board. The table below shows how the different operation modes control the LED.

Table 4-1. On-Board Debugger LED Control
Operation ModePower and Status LED
Boot Loader modeThe LED blinks slowly during power-up
Power-upThe LED is ON
Normal operationThe LED is ON
ProgrammingActivity indicator: The LED blinks slowly during programming/debugging
Drag-and-drop programming
Success:
The LED blinks slowly for 2 sec.
Failure:
The LED blinks rapidly for 2 sec.
FaultThe LED blinks rapidly if a power fault is detected
OffThe LED is OFF, the on-board debugger is powered down.
Info: Slow blinking is approximately 1 Hz, and rapid blinking is about 5 Hz.