
2007-2012 Microchip Technology Inc.
DS61145K-page 3
PIC32MX
3.0
PROGRAMMING STEPS
All tool programmers must perform a common set of
steps, regardless of the actual method being used.
Figure 3-1 shows the set of steps to program PIC32MX
devices.
FIGURE 3-1:
PROGRAMMING FLOW
The following sequence lists the steps, with a brief
explanation of each step. More detailed information
about the steps is available in the following sections.
1.
Connect to the Target Device.
To ensure successful programming, all required
pins must be connected to appropriate signals.
in this document for more information.
2.
Place the Target Device in Programming Mode.
For 2-wire programming methods, the target
device must be placed in a special programming
mode (Enhanced ICSP) before executing any
other steps.
3.
Check the Status of the Device.
Step 3 checks the status of the device to ensure
it is ready to receive information from the
programmer.
more information.
4.
Erase the Target Device.
If the target memory block in the device is not
blank, or if the device is code-protected, an
erase
step
must
be
performed
before
programming any new data.
more information.
5.
Enter Programming Mode.
Step 5 verifies that the device is not code-
protected and boots the TAP controller to start
sending and receiving data to and from the
PIC32MX CPU.
Mode” for more information.
6.
Download the Programming Executive (PE).
The PE is a small block of executable code that
is downloaded into the RAM of the target device.
It will receive and program the actual data.
See
for
more
information.
Done
Exit Programming Mode
Verify Device
Done
Initiate Flash Write
Download a Data Block
Download the PE
(Optional)
Enter Serial Exec Mode
Erase Device
Check Device Status
Start
Enter Enhanced ICSP
(Only required for 2-wire)
No
Yes
Note:
For the 4-wire programming methods,
Step 2 is not required.
Note:
If the programming method being used
does not require the PE, Step 6 is not
required.