Bao'An Shenzhen China

RL78G13 Unlock | Feasibility, Cost & Turnaround

Sep 28, 2026  /  PCB COPY

rl78g13 unlock: Renesas RL78/G13 microcontroller on a PCB with debug probes during firmware recovery

RL78G13 Unlock — Authorized Firmware Recovery for Renesas RL78/G13 MCUs

The Renesas RL78/G13 is one of the most widely deployed 16-bit microcontrollers in metering, industrial control, and consumer appliances. When the original firmware source is lost — or a legacy product needs cloning for continued production — an RL78G13 unlock (flash readout) becomes the fastest path to recovery. Our engineers have handled dozens of RL78/G13 variants and can typically deliver a verified binary within 5–10 working days, provided the device’s security configuration falls within recoverable parameters.

What Security Does the RL78/G13 Use?

rl78g13 unlock: Renesas RL78/G13 microcontroller on a PCB with debug probes during firmware recovery

Renesas implements a multi-layer protection scheme on the RL78/G13 family. Understanding which flags are active on your specific device determines whether an RL78G13 unlock is feasible before any work begins.

Flash Security Flags and Boot Firmware

The RL78/G13 stores security settings in a dedicated option-byte area (addresses 000C0h–000C3h). Three mechanisms matter most:

  • On-chip debug (OCD) security flag — When set, the debug interface is locked. This is the most common barrier encountered during RL78G13 unlock attempts.
  • Flash self-programming restriction — Controls whether user code can reprogram flash sectors at runtime. Its state affects certain extraction vectors.
  • Boot-swap and boot-area write protection — Protects the boot cluster from being overwritten, which limits some in-system approaches.

Unlike some ARM Cortex-M devices that offer only a single RDP level, the RL78/G13’s option bytes create a matrix of possible configurations. Some combinations leave viable attack surfaces; others require more advanced techniques.

Security ID (10-Byte Key)

Renesas also supports a 10-byte Security ID that must be presented over the serial programming interface before the flash can be read. If this ID is unknown and the OCD flag is also locked, the extraction path narrows significantly. Our feasibility assessment checks both conditions before quoting.

How We Approach an RL78G13 Unlock

Every RL78G13 unlock engagement follows a structured workflow designed to minimize risk to the device and maximize the chance of a clean, complete binary.

  1. Feasibility assessment (free) — You ship one or two sample devices. We identify the exact part number (e.g., R5F100LE, R5F100MF), read the option bytes non-destructively where possible, and determine the active security configuration.
  2. Technique selection — Based on the protection matrix, our engineers choose between serial-protocol exploits, glitch-based fault injection on the voltage or clock rail, or — in the hardest cases — semi-invasive die-level techniques.
  3. Extraction and verification — The flash contents (typically 64 KB–512 KB depending on the sub-variant) are read out, then verified by programming a blank RL78/G13 with the recovered binary and comparing functional behavior against the original.
  4. Delivery — You receive the raw .hex or .bin file, plus a brief technical report noting any anomalies (e.g., partial data-flash sections, EEPROM emulation areas).

Authorization is required before work starts. We ask for proof of IP ownership, an NDA, or a signed declaration that the firmware belongs to you or your organization. Details on our verification process are available on our XC866 unlock page, which follows the same authorization framework.

RL78/G13 Sub-Variants and Flash Sizes

Part Number Example Flash Size RAM Package Unlock Complexity
R5F100AA (RL78/G13 – 16 KB) 16 KB 2 KB LQFP-30 Low–Medium
R5F100LE (RL78/G13 – 64 KB) 64 KB 4 KB LQFP-48 Medium
R5F100MF (RL78/G13 – 128 KB) 128 KB 12 KB LQFP-64 Medium
R5F100PJ (RL78/G13 – 512 KB) 512 KB 32 KB LQFP-100 Medium–High

Larger flash variants take longer to verify but do not necessarily present harder security. The primary difficulty driver is the option-byte configuration, not the memory size.

What Can Go Wrong?

Transparency matters. Here are the realistic failure modes our engineers encounter during RL78G13 unlock projects:

  • Damaged bond wires or die — If the chip has been exposed to ESD, moisture ingress, or excessive rework heat, the die may be physically compromised before we begin.
  • Custom bootloader overwrite — Some OEMs replace the stock Renesas boot firmware with a custom loader that changes the serial-protocol behavior. This requires additional reverse-engineering time.
  • Partial data-flash corruption — The RL78/G13 includes a separate data-flash region (4 KB–8 KB). If the device experienced brown-out events, this area may contain inconsistent data that cannot be distinguished from valid content without application context.
  • Security ID brute-force infeasibility — A full 10-byte Security ID has 2⁸⁰ combinations. Without side-channel or fault-injection shortcuts, brute force is not viable. We do not attempt it.

If our assessment concludes that recovery is not feasible, you pay nothing and we return your devices.

Cost and Turnaround for RL78G13 Unlock

Fault-injection lab setup used for MCU flash security bypass
Scenario Typical Price Range (USD) Turnaround (Working Days)
OCD unlocked, Security ID known $300–$600 3–5
OCD locked, Security ID unknown (standard techniques) $800–$1,800 5–10
OCD locked + custom bootloader or die-level work needed $2,000–$4,000+ 10–20
Feasibility assessment only (no extraction) Free 2–3

Pricing depends on the specific sub-variant, security state, and number of sample devices available. We always quote a fixed price after the free assessment — no open-ended billing.

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

RL78G13 vs. Other Low-Power MCU Unlocks

Engineers frequently ask how the RL78/G13 compares to other popular microcontrollers in terms of unlock difficulty. The table below gives a rough comparison based on our lab experience.

MCU Family Vendor Typical Protection Relative Difficulty
RL78/G13 Renesas Option-byte flags + 10-byte Security ID Medium
MSP430F2xx Texas Instruments JTAG fuse + BSL password Medium
nRF52840 Nordic APPROTECT (hardware) Medium–High
GD32E230 GigaDevice SWD lock + option bytes Low–Medium
EFM32PG Silicon Labs Debug lock + AAP Medium

If you are working with multiple chip families on the same legacy board, we can handle them in a single engagement. See our pages on nRF52840 unlock, MSP430F2 unlock, and GD32E230 unlock for family-specific details.

Common Applications Requiring RL78G13 Firmware Recovery

The RL78/G13 appears across a wide range of products. The most frequent recovery requests we see involve:

  • Smart electricity and gas meters — Utility companies needing to maintain or audit deployed meter firmware after the original vendor exits the market.
  • Industrial sensor nodes — Factory-floor sensor modules where the firmware developer is no longer available and the product must remain in production.
  • Home appliance control boards — Washing machines, HVAC controllers, and similar consumer goods where a single RL78/G13 manages the main control loop.
  • Automotive body electronics — Some Tier-2 suppliers use the RL78/G13 in seat controllers, mirror modules, and lighting drivers.

In each case, authorized recovery allows continued manufacturing or field repair without a costly redesign. For EEPROM-based companion chips on the same board, we also offer extraction services — for example, 24C256 readout and AT24C512 extraction.

How to Ship Your RL78/G13 Devices for Assessment

Send a minimum of two programmed RL78/G13 devices (one primary, one backup). Pack them in anti-static bags inside a rigid box. Include a brief note with:

  • Your company name and contact email
  • The exact part number printed on the IC (e.g., R5F100LE3AFP)
  • Any known information about the firmware version or Security ID
  • A signed authorization letter or NDA request

We accept shipments worldwide via DHL, FedEx, or UPS. Assessment begins within 48 hours of receipt.

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
Is RL78G13 unlock legal?

Yes, when performed on firmware you own or are authorized to access. We require proof of ownership or a signed authorization letter before starting any extraction. This covers scenarios like lost source code, vendor discontinuation, and legacy maintenance. All work is performed under NDA.

Can you unlock an RL78/G13 if I don’t know the Security ID?

In many cases, yes. The 10-byte Security ID is one layer of protection, but it is not the only extraction vector. Our engineers use fault-injection and protocol-level techniques that can bypass the ID check on a significant percentage of RL78/G13 configurations. The free feasibility assessment determines whether your specific device is recoverable.

How many sample chips should I send?

We recommend a minimum of two identically programmed RL78/G13 devices. Some extraction techniques carry a small risk of rendering the chip unreadable, so a backup ensures we can retry if the first attempt encounters an unexpected condition.

Will the RL78/G13 be destroyed during unlock?

Most serial-protocol and fault-injection methods are non-destructive — the chip remains functional afterward. Semi-invasive die-level techniques (needed only in the hardest cases) may damage the package but preserve the flash data. We always discuss the approach and its risks before proceeding.

Do you also recover the data-flash contents?

Yes. The RL78/G13’s data-flash region (up to 8 KB) is extracted alongside the code flash. We deliver both sections in the final .hex file, clearly mapped to their respective address ranges.

Working on a board like this?

Send the chip marking or two photos. You get feasibility, lead time and price within 24 hours, and the check costs nothing.

Get a free quote

Related reading

WhatsApp Send board details