Unlock Protected GD32F305RCT6 Flash Heximal

Every enquiry about how to unlock protected GD32F305RCT6 flash heximal content should start with one number: 0x1FFFF800. That is where the option byte area sits, and its SPC byte decides everything about this 256 KB, 96 KB-SRAM connectivity part — a Cortex-M4 at 120 MHz with zero-wait-state access, full-speed USB, two CAN controllers and a 16-channel ADC in a 64-pin package. At 0xA5 the array is open to any programmer; at any other value the device is protected, and every read of the main flash from debug, SRAM boot or the system bootloader terminates in a bus error.

A die photographed under the microscope during package analysis; layout review precedes any readout attempt.
A die photographed under the microscope during package analysis; layout review precedes any readout attempt.

Reading the state before choosing a route

Because the option bytes stay accessible in every protection mode, the first bench transaction is definitive: read 0x1FFFF800, and the lock state is known rather than inferred. The distinction matters because the two states lead to different projects. An open device yields its heximal to any competent session, so the interesting work is verification and packaging. A protected device cannot be read and preserved at the same time through the controller, because restoring the SPC byte to 0xA5 makes the controller mass-erase the array — unlock and preserve are mutually exclusive unless another copy of the firmware exists. We therefore interview the customer about sibling boards, field-updater images and programming logs before quoting anything invasive. The security-byte analysis for the F303VC covers the identical mechanism in the mainstream line.

A die resting on its assembly substrate after the moulding compound has been removed.
A die resting on its assembly substrate after the moulding compound has been removed.

What the finished heximal contains

A completed unlock returns the 256 KB array as a heximal with per-region checksums, the option byte configuration as found, and a note of which regions were verified against a programmed blank rather than merely read. The connectivity peripherals give verification plenty of surface: USB enumeration, CAN traffic and the ADC front end are exercised because protocol-heavy firmware exposes an incomplete image faster than any test pattern. Customers working across the line will find the cracking notes on the 128 KB RB and the firmware-code copying work on the 512 KB RE cover the neighbouring capacities, while the unlock service arrangement and the controller cracking overview describe the commercial side.

Zero-wait access and what it means for readout

The F305 line’s zero-wait-state flash access is a performance headline for designers and a practical fact for recovery work: reads through the controller are fast and deterministic, so a complete capture of the 256 KB code area is bounded by protocol overhead rather than memory latency, and anomalies stand out instead of hiding in wait-state jitter. That determinism shapes our verification method. Each page group is read twice through different access paths — the debug port where available and the controller’s own interface where the state allows — and the two passes are compared byte for byte; on a zero-wait part, disagreement between passes indicates a connection or state problem rather than silicon marginality, which makes diagnosis faster and quotes more honest. The same determinism helps on the replication side: a blank device programmed from a verified image either reproduces the donor’s timing behaviour exactly or has a page missing, and the analogue and communication tests distinguish the two quickly. None of this changes what the lock does — the option bytes behave exactly as the mainstream family’s do — but it changes how confidently a session can be called complete, and confidence is what customers are actually buying when they commission a readout rather than attempting one in house with generic tooling and an uncertain result. Customers sometimes ask whether zero-wait access makes the lock weaker; it does not, because the lock operates at the controller’s command layer, not in the memory timing. What it changes is the speed and reproducibility of every legitimate session, which is where the practical value sits.

Send the marking, the board revision and whatever survives of the original programming records. On this part the state read settles the route in the first session, and most projects close without the destructive path ever being quoted.