3.5 PICkit On-Board 4 (PKOB4) and Debugger/Programmer Selection (U300)

The PIC32-BZ6 Curiosity Board includes an integrated programmer and debugger MPLAB® PICkit On-Board 4 (PKOB4). This new generation of In-Circuit Debugger (ICD), requires no additional programming/debugging tool to get started.

Features and Capabilities of PKOB4:

  • Connects to a Computer Through High-Speed USB 2.0 (480 Mbits/s) Cable
  • Programs the Device using MPLAB® X IDE or MPLAB® IPE
  • Supports Multiple Hardware and Software Breakpoints, Stopwatch and Source Code File Debugging
  • Debugs the Application in Real Time
  • Sets Breakpoints based on the Internal Events
  • Monitors the Internal File Registers
  • Debugs at Full Speed
  • Configures the Pin Drivers
  • Field-Upgradeable Through an MPLAB X IDE Firmware Download
  • Indicates Debugger Status Through On-Board LEDs, Demonstrating the Development Board’s Functionality and Features

The PKOB4 on the PIC32-BZ6 Curiosity Board is intended to support programming and debugging the target device (PIC32WM-BZ6204UE Module) through the debug USB Type-C® connector (J100) from the host PC. The PIC32-BZ6 Curiosity Board does not use the other PKOB4 features, such as data gateway and PKOB4 virtual COM port.

By default, the on-board debugger (PKOB4) is connected to the programming pins (SWDIO and SWDCLK) of the PIC32WM-BZ6204UE Module.

The voltage level translators are provided on signals between the PKOB4 and PIC32WM-BZ6204UE Module for supporting target voltage from 1.9–3.6V.

Two PKOB4 LEDs indicates:
  • Green (D400): ACTIVE indicator
  • Yellow (D401): STATUS indicator

In addition, the PIC32-BZ6 Curiosity Board supports external debuggers, such as MPLAB® ICD5, MPLAB® PICkit 5 In-Circuit Debugger, and MPLAB® SNAP by connecting to the program/debug header (J904).

The program/debug header (J904) follows the standard MPLAB® PICkit 5 1x8 interface (see Figure 3-5). Connect the MPLAB ICD5 to the debug header using the debugger adapter board (AC102015) (see Figure 3-6). For more details, refer to the AC102015 Product page.

Table 3-5. Serial Wire Debug (SWD) Connector Details
Pin Number of Debug HeaderPin NameDescription
1NMCLRPIC32WM-BZ6204 Reset NMCLR pin
2VDD_VIOREFTVDD
3GNDGround
4SWOPB7, optional trace output
5SWCLKPB8, SWD programming clock
6NCNo connection
7NCNo connection
8SWDIOPB9, SWD programming data
Note: PB9 is also shared between the user button 1 and mikroBUS 2 SPI Chip Select.
Figure 3-5. Example Setup Connecting MPLAB® PICkit 5 to the PIC32-BZ6 Curiosity Board
Figure 3-6. Example Setup Connecting MPLAB® ICD 5 to the PIC32-BZ6 Curiosity Board