4.2 Operational Overview
To debug and program code using the MPLAB PICkit Basic In-Circuit
Debugger:
- Purchase MPLAB PICkit Basic and optionally the Debugger Adapter Board.
- Download and install the
latest:
- Visual Studio (VS) Code from Download Visual Studio Code
- MPLAB for VS Code Extensions from Extensions for Visual Studio Code (search for MPLAB.)
- Find and install a compiler for
on your application device from the MPLAB XC Compilers webpage.Note: If MPLAB XC Compilers have already been installed for MPLAB X IDE, MPLAB for VS Code may already have scanned and registered these compilers. To verify this, in the command palette (Ctrl+Shift+P) enter
MPLAB: List toolchains. If an XC Compiler is installed while VS Code is open, in the command palette enterMPLAB: Add toolchainand then select(Auto) Scanto register this compiler. - Find examples of code in MPLAB Discover or search for Microchip content on GitHub.
- Plug MPLAB PICkit Basic into the computer using the USB cable. Ensure you target is correctly connected.
- Open your project or an example
project. Then click
to verify that PICkit Basic is connected. - Read the following sections for details on operation for your application device.
