Basic Tasks

The following steps show how to work with projects in MPLAB® X IDE.

Table 1. Working with Basic Tasks

Preliminaries

  1. 1.Before You Begin, install MPLAB X IDE, set up any hardware tools (install USB drivers and properly connect to your target) and install language tools for your selected device.
  2. 2.Launch MPLAB X IDE to begin.
 

Create and Build a Project

  1. 1.Create a New Project by using the New Project wizard. Then View Changes in Desktop Panes.
  2. 2.Open Project Properties to View or Make Changes to Project Properties, Set Up or Change Debugger/Programmer Tool Options and Set Up or Change Language Tool Options.
  3. 3.Set Language Tool Locations and Set Other Tool Options in the Tools Options dialog.
  4. 4.Create a New File to add to your project or Add Existing Files to a Project. Enter or edit your application code to the File window.
  5. 5.Discover other features for Editor Usage.
  6. 6.Add and Set Up Library and Object Files.
  7. 7.Set File and Folder Properties to keep or exclude individual files or entire folders from the build.
  8. 8.Set Build Properties for your project. Here you may select the project configuration type, pre- and post-build steps, using the checksum as the user ID, and loading an alternative hex file on build.
  9. 9.Build a Project.
 

Execute Code

  1. 1.Run Code to execute your code.
  2. 2.Debug Code to execute your code in a debug session.
 

Debug Code

  1. 1.Control Program Execution with Breakpoints. Set breakpoints in-line or via the Breakpoint window.
  2. 2.Step Through Code as the program executes.
  3. 3.Watch Symbol Values Change in the Watches and Variables windows.
  4. 4.View or Change Device Memory. Memory types are dependent on the device selected. Additionally, see Set Configuration Values in the Configuration Bits Window.
 

Program a Device

  1. 1.Program a Device using simple toolbar buttons.