What Is dsPIC Unlock and When Do You Need It?
A dsPIC unlock is the authorized extraction of firmware from a Microchip dsPIC digital signal controller whose code-protection (CP) fuses have been set, preventing standard read-back through ICSP or a debugger. Engineers typically need this service when original source code is lost, a key developer has left the organization, or a legacy product requires maintenance on a discontinued dsPIC variant. Our lab handles dsPIC30F, dsPIC33F, dsPIC33E, and dsPIC33C families, with feasibility determined on a per-part, per-protection-level basis.
How Microchip dsPIC Code Protection Works

Microchip implements code protection through configuration fuses burned into the device’s flash during programming. Understanding the specific mechanism is critical before any dsPIC unlock attempt, because the difficulty—and sometimes the possibility—of recovery depends entirely on which bits are set.
Configuration Fuse Bits
Every dsPIC has a set of Configuration Words (typically located at addresses 0xF80000–0xF8000E) that control protection. The two most relevant fields are:
- GCP (General Code Protect): When cleared to 0, prevents external read of the entire program-memory space via ICSP.
- GWRP (General Write Protect): Prevents external writes; relevant because some recovery vectors rely on partial write access.
On dsPIC33E/dsPIC33C parts, Microchip added segment-level protection (Code Protect Segment and Write Protect Segment bits), allowing the flash to be divided into protected and unprotected regions. A device with only segment-level protection set—leaving the boot segment readable—is significantly easier to work with than one with full GCP enabled.
Protection Levels by Family
| Family | Protection Mechanism | Typical Recovery Difficulty | Notes |
|---|---|---|---|
| dsPIC30F | GCP + GWRP fuse bits | Moderate | Older silicon; more documented attack surfaces |
| dsPIC33FJ | GCP + GWRP + Code Guard™ segments | Moderate–High | Segment isolation complicates partial reads |
| dsPIC33EP | Enhanced Code Guard™ (3 segments) | High | Boot, Secure, General segments each independently lockable |
| dsPIC33CK/CH | Enhanced Code Guard™ + Secure Boot | Very High | Newer process node; hardware-enforced trust zones |
Parts with only GCP set (no Code Guard segmentation) are the most straightforward candidates for dsPIC unlock. Once Secure Boot is involved on the latest dsPIC33C silicon, non-invasive recovery becomes substantially less feasible.
dsPIC Unlock Methods Our Lab Uses
We apply different techniques depending on the target device, its protection configuration, and the client’s constraints (destructive vs. non-destructive, single sample vs. production batch).
Non-Invasive (Electrical / Protocol-Level)
- Glitch attacks on the ICSP protocol: Precisely timed voltage or clock glitches during the configuration-word verification sequence can cause the protection check to be bypassed on certain dsPIC30F and early dsPIC33FJ steppings. Success depends on silicon revision—mask revisions after ~2012 patched several known vectors.
- Debug-interface exploitation: On devices where the debug executive is still partially accessible, controlled single-step execution can be used to move flash contents into RAM and read them out through the debug channel.
Semi-Invasive (Die-Level, Non-Destructive to Data)
- UV/Laser fault injection: Focused UV or laser light on decapped die can flip individual fuse bits without erasing flash. This is the primary method for dsPIC33EP parts with full Code Guard enabled. The package is opened chemically, the die is mapped, and targeted illumination resets the GCP fuse while leaving program memory intact.
- Microprobing: Direct contact with internal bus lines on the die using tungsten probes. Requires expensive FIB (Focused Ion Beam) preparation on sub-90nm processes, so it is generally reserved for high-value recovery.
What We Cannot Do
Honesty matters here. On the newest dsPIC33CK parts with Secure Boot and encrypted flash, our current success rate is below 30%. We will not accept a paid engagement on a part we assess as infeasible—this is determined during the free feasibility review. If your device falls into this category, we will tell you upfront and suggest alternative paths (e.g., re-developing firmware from a schematic-level reverse engineering of the board).
Typical Turnaround and Pricing Signals
| Device Category | Estimated Turnaround | Price Range (USD) |
|---|---|---|
| dsPIC30F (GCP only) | 3–5 working days | $300–$600 |
| dsPIC33FJ (GCP, no Code Guard) | 5–8 working days | $400–$800 |
| dsPIC33EP (Code Guard segments) | 8–15 working days | $800–$2,000 |
| dsPIC33CK/CH (Secure Boot) | Feasibility review required | Quote after assessment |
Pricing depends on the exact part number, silicon revision (check the last four digits of the lot code), and whether the package must be decapped. We charge nothing for the initial feasibility assessment.
Authorization and Legal Requirements
Every dsPIC unlock engagement requires documented proof of ownership or authorized access before work begins. We accept:
- Purchase invoices or bills of material showing the client procured the hardware.
- A signed declaration that the firmware is the client’s own IP or that the client has written authorization from the IP holder.
- NDA execution (mutual) covering deliverables and process details.
We do not perform firmware extraction for the purpose of cloning a competitor’s product, circumventing licensing, or any activity that violates applicable IP law. If you have questions about what qualifies, our compliance overview explains the boundaries in detail.
Step-by-Step Process for a dsPIC Unlock Request

- Submit your part number and protection details. Include the full Microchip part number (e.g., dsPIC33EP512MU810-I/PF), the silicon revision if known, and a description of the protection state (GCP set, Code Guard enabled, etc.).
- Free feasibility review (24–48 hours). Our engineers assess the device against our internal database of successful recoveries and known protection weaknesses.
- Authorization documentation. You provide proof of ownership; we countersign an NDA.
- Ship the sample. Typically 1–3 programmed devices. We recommend sending at least two in case one is consumed during decapping.
- Recovery and verification. Extracted firmware is verified by re-programming a blank dsPIC and running functional tests against your hardware (if a test board is provided).
- Delivery. You receive the binary (Intel HEX or raw .bin), a configuration-word map, and an optional disassembly listing.
Common dsPIC Unlock Failure Modes
Not every attempt succeeds. Knowing the failure modes helps set realistic expectations:
- Flash corruption during decapping: Chemical removal of the epoxy package can damage bond wires or contaminate the die surface. Risk is ~5% on TQFP packages, higher on QFN.
- Fuse-bit reset erases flash: On certain dsPIC33E revisions, the bulk-erase and code-protect-clear operations are linked at the hardware level, meaning clearing GCP also wipes program memory. Our pre-assessment catches these revisions.
- Encrypted flash (dsPIC33CK): Even if the binary is read out, it may be AES-encrypted with a device-unique key, rendering the dump useless without the key material.
Related Microcontroller Unlock Services
If you are working across a mixed-vendor BOM, our lab handles a wide range of MCU families beyond Microchip dsPIC. For Freescale/NXP Kinetis parts, see our MK60 Kinetis unlock service or the MKE02 recovery page for the lower-end E-series. STMicroelectronics 8-bit users can review our STM8L protection-level analysis, while Nordic Semiconductor BLE projects are covered under nRF52840 firmware readout. For a broader overview of IC extraction across all vendors, visit our IC unlock service hub.
Frequently Asked Questions
Can a dsPIC be unlocked without destroying the chip?
For dsPIC30F and many dsPIC33FJ devices with only GCP set, non-invasive electrical methods can extract firmware without opening the package. Parts requiring UV fault injection need decapping, which is non-destructive to the die and data but does destroy the original package. The chip remains functional on a test socket afterward.
How do I find out which protection level my dsPIC has?
Connect the device via ICSP using MPLAB IPE. Attempt a “Read” operation—the tool will report which configuration words are locked. Alternatively, check your original .hex programming file for the FBS (Boot Segment) and FGS (General Segment) configuration word values. If you no longer have either, ship the device to us and we will identify the protection state during the free feasibility check.
Is dsPIC unlock legal?
Extracting firmware you own or are authorized to access is legal in most jurisdictions. It falls under legitimate maintenance, repair, and interoperability rights. We require proof of ownership or written authorization before starting any work, and all engagements are covered by a mutual NDA. We decline requests that appear to target third-party proprietary code.
What deliverables do I receive after a successful dsPIC unlock?
You receive the complete flash contents as an Intel HEX file, a separate configuration-word map documenting all fuse settings, and optionally a disassembly listing annotated with peripheral register references. If you supply a test board, we also provide a functional verification report confirming the extracted binary runs correctly on a blank device.
What if my dsPIC part is discontinued?
Discontinued parts are actually our most common dsPIC unlock requests. Because replacement silicon is unavailable, firmware recovery is often the only path to continued production or field repair. We maintain a reference library covering dsPIC30F, dsPIC33FJ, and early dsPIC33EP devices specifically for legacy support.
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{
“@context”: “https://schema.org”,
“@graph”: [
{
“@type”: “Service”,
“name”: “dsPIC Unlock Service”,
“description”: “Authorized firmware extraction and code-protection recovery for Microchip dsPIC30F, dsPIC33F, dsPIC33E, and dsPIC33C digital signal controllers.”,
“provider”: {
“@type”: “Organization”,
“name”: “PCB-Copy.com”,
“url”: “https://pcb-copy.com”
},
“serviceType”: “IC Unlock / Firmware Recovery”,
“url”: “https://pcb-copy.com/dspic-unlock/”
},
{
“@type”: “BreadcrumbList”,
“itemListElement”: [
{“@type”: “ListItem”, “position”: 1, “name”: “Home”, “item”: “https://pcb-copy.com/”},
{“@type”: “ListItem”, “position”: 2, “name”: “IC Unlock”, “item”: “https://pcb-copy.com/break-ic/”},
{“@type”: “ListItem”, “position”: 3, “name”: “dsPIC Unlock”, “item”: “https://pcb-copy.com/dspic-unlock/”}
]
},
{
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “Can a dsPIC be unlocked without destroying the chip?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “For dsPIC30F and many dsPIC33FJ devices with only GCP set, non-invasive electrical methods can extract firmware without opening the package. Parts requiring UV fault injection need decapping, which is non-destructive to the die and data but does destroy the original package.”
}
},
{
“@type”: “Question”,
“name”: “How do I find out which protection level my dsPIC has?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Connect the device via ICSP using MPLAB IPE and attempt a Read operation. The tool will report which configuration words are locked. Alternatively, check your original .hex file for the FBS and FGS configuration word values.”
}
},
{
“@type”: “Question”,
“name”: “Is dsPIC unlock legal?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Extracting firmware you own or are authorized to access is legal in most jurisdictions under maintenance, repair, and interoperability rights. Proof of ownership or written authorization is required before work begins.”
}
},
{
“@type”: “Question”,
“name”: “What deliverables do I receive after a successful dsPIC unlock?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “You receive the complete flash contents as an Intel HEX file, a configuration-word map, and optionally a disassembly listing. Functional verification on a blank device is included if a test board is supplied.”
}
},
{
“@type”: “Question”,
“name”: “What if my dsPIC part is discontinued?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Discontinued parts are the most common dsPIC unlock requests. Firmware recovery is often the only path to continued production or field repair when replacement silicon is unavailable.”
}
}
]
}
]
}
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.