What Is PIC32 Unlock and When Do You Need It?
PIC32 unlock is the process of recovering firmware from a code-protected Microchip PIC32 microcontroller—a 32-bit MIPS-core device widely used in industrial controls, medical instruments, and IoT gateways. When the original source code or project files are lost, and the chip’s Code Protection (CP) and Write Protection (WP) bits are set, direct readout through a standard programmer returns only 0x00 or 0xFF. Our engineers use a combination of voltage glitching, debug-port exploitation, and—where necessary—invasive die-level techniques to recover the flash contents as a verified binary image, typically within 5–15 working days.
How PIC32 Code Protection Works

Understanding the protection is essential before evaluating feasibility. PIC32 devices use configuration fuses stored in the Boot Flash Configuration (BFC) region. The relevant bits include:
- CP (Code Protect): When set, blocks external read of program flash via ICSP or JTAG.
- BWP (Boot Write Protect): Prevents modification of the boot flash region.
- PWP (Program Flash Write Protect): Locks specific program flash pages against write/erase.
- JTAG Disable (JTAGEN = OFF): Disables the JTAG port entirely, removing a common debug entry point.
On older PIC32MX parts (MX1xx/2xx, MX3xx/4xx, MX5xx/7xx), the protection relies primarily on gating the read path in the debug executive. Newer PIC32MZ and PIC32MK families add encrypted boot support and more granular flash partitioning, making the recovery path more complex. PIC32CK and PIC32CM (Arm-based, despite the PIC32 branding) use TrustZone-style secure regions—a fundamentally different architecture that requires separate evaluation.
PIC32 Unlock Feasibility by Sub-Family
Not every PIC32 variant responds to the same techniques. The table below summarizes our current assessment based on lab results across hundreds of chips. Feasibility is rated before we receive your specific device; a no-cost preliminary check confirms the exact part number and revision.
| Sub-Family | Core | Flash Range | Feasibility | Typical Method |
|---|---|---|---|---|
| PIC32MX1xx/2xx | MIPS M4K | 32–128 KB | High | Debug exploit / glitch |
| PIC32MX3xx/4xx | MIPS M4K | 64–512 KB | High | Debug exploit / glitch |
| PIC32MX5xx/7xx | MIPS M4K | 64–512 KB | High | Debug exploit / glitch |
| PIC32MX1xx/2xx XLP | MIPS M4K | 64–256 KB | Moderate–High | Glitch + partial invasive |
| PIC32MZ EF/EC | MIPS microAptiv | 1–2 MB | Moderate | Glitch / invasive |
| PIC32MZ DA | MIPS microAptiv | 2 MB | Moderate | Invasive |
| PIC32MZ W (Wi-Fi) | MIPS microAptiv | 1 MB | Case-by-case | Requires evaluation |
| PIC32MK | MIPS microAptiv | 512 KB–1 MB | Moderate | Glitch / invasive |
| PIC32CM / PIC32CK | Arm Cortex-M | Varies | Low–Moderate | Separate Arm flow |
“High” feasibility means we have repeatable, proven techniques for most silicon revisions. “Moderate” means success depends on the specific revision and configuration—our preliminary check identifies blockers before you commit funds.
Our PIC32 Firmware Recovery Process
Step 1 — Authorization & Intake
We require proof of ownership or written authorization before starting any PIC32 unlock engagement. This can be a purchase order for the original product, a design-rights transfer, or a notarized letter from the IP holder. We operate under NDA by default. This isn’t optional—it protects both parties and ensures the work is legally defensible for legacy maintenance, second-source qualification, or disaster recovery.
Step 2 — Preliminary Identification
You ship 2–3 sample chips (we recommend spares because invasive methods are destructive to at least one unit). Our lab reads the device ID, silicon revision, and configuration word state using a custom ICSP/JTAG probe rig. Within 2 working days we confirm the exact sub-family, protection level, and whether the part falls into our proven-technique library or requires R&D.
Step 3 — Extraction
For PIC32MX parts with debug-executive vulnerabilities, extraction often completes in a single session—voltage glitching during the authentication handshake can bypass the CP gate without touching the die. For PIC32MZ and MK devices, or revisions where Microchip has patched known glitch windows, we escalate to semi-invasive or fully invasive techniques: decapsulation, micro-probing the internal bus, and direct flash readout under a scanning electron microscope (SEM) or focused ion beam (FIB) station.
Step 4 — Verification
The raw binary is disassembled and cross-checked against known PIC32 vector tables and peripheral register maps. We verify the reset vector, exception handler addresses, and configuration words match the target device. If you supply a known-good unit (programmed, functioning board), we can also do a functional comparison—re-programming a blank PIC32 with the recovered image and confirming identical behavior.
Step 5 — Delivery
You receive a verified .hex or .bin file, a brief extraction report noting the method used and any caveats (e.g., boot flash vs. program flash boundaries), and optionally a set of pre-programmed replacement chips.
Cost and Lead Time for PIC32 Unlock
Pricing depends on the sub-family, the protection configuration, and whether the method is non-invasive or requires die-level work. The ranges below are starting points—your actual quote comes after the preliminary check.
| Scenario | Typical Cost (USD) | Lead Time (Working Days) |
|---|---|---|
| PIC32MX — debug exploit / glitch | $500 – $900 | 5 – 8 |
| PIC32MX — patched revision, semi-invasive | $900 – $1,800 | 8 – 12 |
| PIC32MZ / MK — glitch possible | $800 – $1,500 | 7 – 12 |
| PIC32MZ / MK — full invasive (FIB/SEM) | $2,000 – $4,500 | 10 – 20 |
| PIC32CM / CK (Arm-based) — evaluation first | Quoted after eval | 15 – 25+ |
We charge nothing if the preliminary evaluation determines the chip cannot be recovered. You only pay upon successful delivery of a verified firmware image.
What Can Go Wrong — Honest Limitations

Transparency matters more than a sales pitch. Here are the real constraints:
- Silicon revision matters. A PIC32MX795F512H rev A3 may be trivially glitchable while rev B2 is not. We cannot guarantee success until we see the physical chip.
- Encrypted boot (PIC32MZ EF with Secure Boot): If the OEM enabled AES-encrypted boot, we can read the encrypted flash contents but cannot decrypt without the key. Recovery in this case yields ciphertext, not usable firmware.
- Destructive methods consume samples. Invasive decapsulation destroys the package. Plan to send at least 2 chips—ideally 3—so we have margin for process tuning.
- EEPROM emulation in flash: Some PIC32 designs store calibration data in the last flash pages. We recover all flash contents, but you’ll need to know which pages are code vs. data.
- External memory: If the design stores part of its firmware in an external SPI flash or EEPROM, that IC must be read separately—often straightforward, but it’s a separate line item.
PIC32 vs. Other Microchip Families
If you’re working across a product line that uses multiple Microchip architectures, the unlock difficulty varies significantly. The 8-bit PIC16 firmware recovery process is generally simpler due to smaller flash and weaker fuse protection. Similarly, PIC18 unlock projects benefit from well-documented debug-executive weaknesses in most revisions. The 16-bit dsPIC families—such as the dsPIC33F—sit between PIC18 and PIC32 in terms of difficulty, with Code Guard Security adding segment-level partitioning that PIC16/18 lack.
On the other end of the spectrum, if your board also contains Atmel/Microchip SAM-series Arm parts, the techniques diverge entirely. Our AT91SAM unlock service covers those legacy Arm9 devices, while newer SAM-D/E/C parts follow a Cortex-M protection model closer to the PIC32CM/CK.
Who Uses PIC32 Unlock Services?
The most common scenarios our lab handles:
- Legacy equipment maintenance: The original firmware developer is unavailable, the source code was never placed in escrow, and a production line depends on boards built around PIC32MX or PIC32MZ controllers.
- Second-source qualification: An OEM needs to verify that a contract manufacturer programmed the correct firmware version onto delivered boards.
- Disaster recovery: A single prototype contains the only copy of validated firmware, and the design files were lost in a server failure or personnel change.
- Product redesign: Migrating from a discontinued PIC32MX part to a PIC32MK or third-party MCU requires extracting the existing binary as a reference for the new port.
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility reviewFrequently Asked Questions About PIC32 Unlock
Is PIC32 unlock legal?
Yes, when performed on firmware you own or are authorized to recover. We require documented proof of ownership or a written authorization letter before starting. All projects are conducted under NDA. The work falls under legitimate reverse engineering for interoperability, maintenance, or IP recovery—not circumvention of third-party protections for copying purposes.
How many sample chips should I send?
We recommend 2–3 units. Non-invasive glitch attacks are non-destructive to the chip, but if we need to escalate to decapsulation or micro-probing, each attempt consumes one sample. Sending three gives us room for process calibration and a final verification unit.
Can you recover firmware from a PIC32 soldered to a PCB?
For non-invasive methods (ICSP/JTAG glitch), yes—we can probe the programming header or pads directly on the board. For invasive methods, the chip must be desoldered first. We can handle desoldering in-house for BGA and QFP packages without damaging the PCB, though success depends on board condition.
What if my PIC32MZ uses encrypted boot?
We can extract the encrypted flash image, but without the AES key the binary is not directly executable. If you hold the key (e.g., from a key ceremony document or HSM backup), we deliver the raw image and you decrypt it. If the key is lost, the firmware is effectively unrecoverable through extraction alone—we’ll tell you this at the evaluation stage so you don’t waste money.
Do you also program replacement PIC32 chips?
Yes. Once the firmware is recovered and verified, we can program blank PIC32 devices with the recovered image and ship them ready to solder. Bulk programming for production runs is available at volume pricing.
Related Microchip & MCU Unlock Services
Our lab covers a wide range of Microchip and third-party microcontrollers. If your product line spans multiple architectures, these pages detail feasibility and pricing for each family:
- PIC12 firmware recovery — baseline 8-bit parts with minimal protection
- dsPIC33E unlock feasibility — 16-bit DSP family with Code Guard Security
- MSP430 firmware readout — TI’s ultra-low-power 16-bit MCU line
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility reviewWhat do you need to recover?
Send the full marking or board photos, sample condition and required outcome. Ask for an NDA before sharing confidential files. Scope and sample handling are confirmed individually.
The article title is carried into the contact form. Add your own details and review the enquiry before sending.