Bao'An Shenzhen China

PIC32MM Unlock | Feasibility, Cost & Lead Time

Published · About 7 min read · PCB-Copy

On this page
  1. PIC32MM Unlock — Authorized Firmware Recovery for Microchip’s Ultra-Low-Power MCUs
  2. What Code Protection Does the PIC32MM Use?
  3. Is PIC32MM Unlock Feasible for Your Part?
  4. How Our Engineers Approach PIC32MM Firmware Recovery
  5. Cost and Lead Time for PIC32MM Unlock
  6. What Can Go Wrong?
  7. PIC32MM vs. Other Microchip 32-Bit Families
  8. Related MCU Unlock Services
  9. Frequently Asked Questions

PIC32MM Unlock — Authorized Firmware Recovery for Microchip’s Ultra-Low-Power MCUs

PIC32MM unlock is the process of recovering firmware from Microchip’s PIC32MM family of 32-bit MIPS-based microcontrollers when the code-protection (CP) fuses have been set and the original source code or project files are unavailable. Our engineers perform this work strictly under proof-of-ownership or written authorization, supporting legacy maintenance, prototype recovery, and second-source continuity for hardware you designed or legally acquired.

The PIC32MM family — spanning the PIC32MM0016GPL, PIC32MM0064GPL, PIC32MM0256GPM, and their “XLP” low-power siblings — uses a configuration-word-based protection scheme. Feasibility depends on the specific sub-family, silicon revision, and which protection bits are active. Below we break down what matters before you commit time or budget.

What Code Protection Does the PIC32MM Use?

pic32mm unlock: PIC32MM QFN microcontroller soldered on a PCB under lab inspection

Microchip implements flash protection in the PIC32MM through dedicated Configuration Words (DEVCFG). The key bits are:

  • CP (Code Protect): When set to 0, external read of program flash via ICSP/JTAG is blocked.
  • BWP (Boot Write Protect): Prevents writes to the boot flash region, complicating any glitch-based approach.
  • PWP (Program Write Protect): Granular write-protection of program flash pages in 4 KB blocks.
  • JTAGEN: Controls whether the JTAG port is active — if disabled, the primary debug interface is closed.

Unlike some older PIC16/PIC18 families where protection was a single global bit, the PIC32MM can lock down boot flash and program flash independently, and the MIPS M4K core adds a layer of debug-access control through the EJTAG TAP. Silicon revision matters: early-revision GPL parts (revision A1/A3) have been observed to handle certain boundary conditions differently than later GPM revisions.

Protection Levels at a Glance

Configuration Bit Default (Unprogrammed) Locked State Impact on Recovery
CP 1 (OFF — readable) 0 (ON) Blocks ICSP/JTAG flash readout
BWP 1 (OFF) 0 (ON) Prevents boot-region overwrite
PWP All 1s (OFF) Variable Blocks write to selected 4 KB pages
JTAGEN 1 (Enabled) 0 (Disabled) Closes JTAG debug port entirely

When only CP is active but JTAG remains enabled, the recovery outlook is significantly better than when all four protections are engaged simultaneously.

Is PIC32MM Unlock Feasible for Your Part?

Feasibility is not binary — it depends on the exact part number, the silicon revision stamped on the package, and which fuses were programmed. Our lab evaluates each case individually, but here is the general landscape:

  • PIC32MM0016GPL / PIC32MM0032GPL (16–32 KB flash): Moderate-to-high feasibility. Smaller flash sizes reduce extraction time, and the GPL sub-family has been studied more extensively.
  • PIC32MM0064GPL / PIC32MM0128GPL (64–128 KB flash): Moderate feasibility. Same protection architecture, but extraction time scales with flash density.
  • PIC32MM0256GPM (256 KB flash, GPM package): Moderate feasibility. The GPM variants add peripheral features but share the same DEVCFG protection model.
  • Any part with CP + JTAGEN disabled + BWP active: Lower feasibility; may require invasive (decap) techniques, which increase cost and risk.

We provide a free feasibility assessment before any paid work begins. Ship us the device or provide the full part number (including revision code on the package marking, e.g., “PIC32MM0064GPL028-I/SS, Rev A3”), and we return a feasibility verdict within 2–3 working days.

How Our Engineers Approach PIC32MM Firmware Recovery

Step 1 — Documentation & Authorization

You supply proof of ownership or a signed authorization letter. We execute an NDA covering all extracted data. This is mandatory — we do not proceed without it. For more on our legal and ethical framework, see our authorization and trust policy.

Step 2 — Non-Invasive Assessment

Our engineers connect to the target via Microchip’s 2-wire ICSP or 4-wire JTAG interface using a PICkit 4 or custom EJTAG adapter. We read the Device ID and Configuration Words to map exactly which protections are active. If JTAG is disabled, we probe the ICSP fallback path. This step takes 1–2 hours and is non-destructive.

Step 3 — Extraction

The specific technique depends on the protection profile. Common approaches for PIC32MM parts include:

  • Debug-port exploitation: Leveraging documented and undocumented EJTAG commands to access flash contents when CP is set but JTAG remains open.
  • Voltage-glitch injection: Precisely timed supply transients during the boot sequence to bypass the CP check. Requires sub-nanosecond timing control and is silicon-revision-dependent.
  • Invasive (decap + microprobing): Used only as a last resort when all non-invasive paths are blocked. Involves chemical decapsulation and direct probing of the flash array. Higher cost, 70–85% success rate depending on die condition.

Step 4 — Verification & Delivery

Extracted firmware is verified by checksum comparison (where a known CRC exists) or functional validation on a blank PIC32MM device. We deliver the binary as an Intel HEX file, and optionally as a raw .bin, along with a register map of the Configuration Words so you can reprogram a replacement part identically.

Cost and Lead Time for PIC32MM Unlock

Scenario Typical Cost (USD) Lead Time (Working Days)
CP only, JTAG enabled, GPL sub-family $400 – $700 5 – 8
CP + BWP, JTAG enabled, GPM sub-family $600 – $1,000 7 – 12
CP + JTAG disabled (non-invasive attempt) $800 – $1,200 10 – 15
Full lockdown — invasive decap required $1,500 – $3,000+ 15 – 25

Pricing varies with flash size (a 256 KB GPM part takes longer to dump than a 16 KB GPL), the number of sample devices available (we recommend shipping 2–3 units for invasive work), and urgency. Rush service (≤5 days) carries a 30–50% surcharge.

What Can Go Wrong?

JTAG probe connected to a microcontroller board during firmware recovery

Transparency matters more than marketing. Here are real failure modes we have encountered:

  • Die damage during decap: The PIC32MM uses a relatively thin die in QFN/SSOP packages. Aggressive chemical etching can damage bond wires or the flash array itself.
  • Glitch-resistant silicon revisions: Later GPM revisions (B1+) show improved brown-out-reset behavior that narrows the voltage-glitch window, sometimes to the point of impracticality.
  • Encrypted bootloader payloads: If the application firmware was loaded through a custom encrypted bootloader, the raw flash dump may be AES-wrapped. We can extract the ciphertext but cannot decrypt it without the key — that is a separate reverse-engineering engagement.
  • Fuse state ambiguity: Some field-programmed parts have partially set PWP fields, leading to inconsistent read behavior across pages. Multiple extraction passes and cross-verification are required.

We charge nothing if the extraction fails entirely. You pay only for successful recovery of a verified, functional firmware image.

PIC32MM vs. Other Microchip 32-Bit Families

The PIC32MM sits between the older PIC32MX and the more powerful PIC32MZ in Microchip’s lineup. From an unlock perspective, the MM family is generally more approachable than the MZ (which adds Crypto Engine hardware on some variants) but slightly harder than legacy PIC32MX parts due to tighter EJTAG access control. If your project involves multiple Microchip families, our lab handles the full PIC32 range as well as dsPIC33 variants — see our pages on dsPIC33C firmware recovery and dsPIC33E-CH unlock for comparison.

Related MCU Unlock Services

If you work across multiple microcontroller vendors, we support a wide range of families beyond Microchip. Engineers managing mixed-vendor BOM designs often need parallel recovery for:

Frequently Asked Questions

Can PIC32MM firmware be read if both CP and JTAG are disabled?

Yes, but it requires more advanced techniques — typically voltage-glitch injection or invasive microprobing after chemical decapsulation. Success depends on the silicon revision and die condition. Our free feasibility check determines viability before you commit funds. Expect costs in the $800–$3,000 range for fully locked parts.

Do I need to send the physical chip, or can you work from a dump file?

For PIC32MM unlock, we need the physical device. Code-protection enforcement happens in silicon, not in software, so there is no way to bypass it from a partial dump. Ship 1–3 units (more is better for invasive attempts). We return all surviving devices along with the extracted HEX file.

Is PIC32MM unlock legal?

Firmware recovery is legal when performed on devices you own or are authorized to access — for example, recovering your own production firmware after a source-code loss, or maintaining legacy equipment. We require signed proof of ownership or authorization before starting. See our trust and authorization page for full details.

How does PIC32MM protection compare to STM32 RDP Level 2?

STM32 RDP Level 2 is a permanent, irreversible lock that physically disables debug access — it is among the hardest protections to defeat. PIC32MM CP is fuse-based and does not permanently destroy the debug interface, making it generally more approachable. However, when JTAG is also disabled on a PIC32MM, the difficulty gap narrows considerably.

What file formats do you deliver after a successful PIC32MM unlock?

Standard delivery includes an Intel HEX (.hex) file compatible with MPLAB IPE / PICkit programmers, plus a raw binary (.bin). We also document the Configuration Word values (DEVCFG0–DEVCFG3) so you can reproduce the exact fuse settings on a replacement device.

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 review
TURN THE GUIDE INTO A PROJECT QUESTION

What 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.

WhatsApp Send board details