Guides · Quality & authenticity

What Should Buyers Check Before Erasing a Protected STM32F103C8T6?

Review STM32F103C8T6 read and write protection before an erase. Record data-retention needs, permitted changes and the limits of before-and-after evidence.

· StockWake team · Source: Original content by StockWake. Please credit StockWake when republishing.

MCU-and-records-illustration-for-STM32F103C8T6-protection-review

Before you erase a protected STM32F103C8T6, you must first identify the actual problem, determine what data or evidence must be preserved, and agree on which changes are allowed. A connection error, read protection (RDP), and write protection (WRP) are not interchangeable findings. An erase or a protection change may destroy evidence you still need. Record the unit identity, tool setup, and every action already taken before you decide whether a changed device can answer your purchasing question.

Record What Has Already Happened

Tie Every Observation to the Identified Material

Start with the complete STM32F103C8T6 ordering code and a reference for the actual sample or offered lot. Add the board identity when the device is installed. A screenshot without that connection may describe a completely different unit.

Keep the exact error message, failed operation, and earlier results in their original order. Record the tool and version, probe and firmware, interface, connection mode, and reset setting. Ask whether anyone has already changed option bytes, erased memory, or programmed a new image. If that history is unknown, say so. Do not describe the current display as the untouched state received from the supplier.

Separate the Protection Mechanisms From the Connection Problem

The F1 Manual Controls the Interpretation

ST's PM0075 programming manual (Doc ID 17863 Rev 2) covers the STM32F103xx. It treats read protection (RDP) separately from page write protection (WRP).

Critical fact: Changing read protection from protected to unprotected forces a mass erase of main Flash. Removing write protection has two documented cases, depending on the resulting read-protection state. These operations must not be given one generic data-preservation promise.

A connection error is not a confirmed protection setting. Keep the original symptom separate from any status successfully read. Do not borrow a protection value, security level, or recovery command from a different STM32 family just because a search result uses the same terminology.

Scroll sideways to see the whole table

Observation

What to Record

What It Does Not Establish

Connection fails

Exact message, setup, and attempted operation

A confirmed protection state or device fault

RDP status is displayed

Reported value, tool version, and identified unit

Permission to remove protection or discard data

A write-protection error is reported

Operation, affected region if known, and observed settings

The correct change or its data-loss consequences

A supplier says the part is locked

Their exact meaning and supporting records

Authenticity, prior use, or a demonstrated root cause

Agree What Must Be Preserved Before Allowing a Change

Data Retention Is a Requirement You Must Resolve First

Ask what the purchase actually requires: an unprogrammed device, a specified image, or a device that engineering can configure for the application. These are different acceptance questions. Record whether existing firmware, configuration data, or evidence of the observed state must be retained.

If retention is required but the contents cannot be read, leave that requirement unresolved. Removing protection by an operation that erases the contents is not a way to back them up. Do not accept an assurance that "the device will be readable afterward" as an answer to preserving what is there now.

Have the responsible reviewer define the permitted evaluation scope. Specify the identified samples, allowed observations and changes, data-loss limits, expected records, and who decides the next step. A supplier offering to perform an erase does not, by itself, settle those requirements. If the proposed method cannot preserve required evidence, revise the scope before work proceeds.

Record the Connection and Each Permitted Change

Observation Does Not Automatically Mean No Intervention

ST's STM32CubeProgrammer 2.23.0 connection documentation describes Normal mode as resetting and halting the target. Connect under reset uses reset vector catch before instructions execute. Engineering must therefore select a suitable connection procedure; calling the intended task a "status check" does not make every connection method nonintrusive.

The same version's option-byte documentation distinguishes reading and displaying values from changing fields and selecting Apply. Apply programs and verifies the option bytes. Reading, applying changes, removing protection, and erasing are not interchangeable entries in an evaluation record.

Preserve the output before and after each permitted step. Record the operator, time, selected mode, requested action, actual result, and any interruption. If a new action falls outside the agreed scope, return it for a decision. Do not keep changing settings until an error disappears and then retain only the final successful screenshot.

Keep Post-Change Results Within Their Actual Scope

A Changed Sample Cannot Recreate Its Earlier State

A blank check after an erase describes the state checked after that operation. It does not establish that the device arrived blank. Similarly, a later programming or verification result is evidence about the identified sample and recorded procedure. It does not reveal the erased firmware's history or establish that every unit in the offered lot behaves the same way.

Scroll sideways to see the whole table

Record

Useful Purchasing Evidence

Boundary to Preserve

Original message and available status

The observation made under the recorded setup

Unknown earlier actions remain unknown

Agreed change record

Which samples and operations were permitted

Permission is separate from execution and success

Post-change check

The result for the identified sample and method

It does not reconstruct the pre-change contents

Purchase decision

Requirements met, remaining gaps, and reviewer conditions

Its scope must identify the material covered

Keep these records connected when you read the scope of the inspection or test report. If the report answers only a post-change question, do not use its pass result as a statement about the original contents. Any conclusion about authenticity, condition, or a larger quantity needs evidence that supports that separate conclusion.

Frequently Asked Questions

Does a Connection Error Prove Read Protection?

No. Preserve the exact error and setup. A failed connection does not establish which protection settings are active or why communication failed.

Will Removing Read Protection Preserve the Existing Program?

No. PM0075 specifies main Flash mass erase for the protected-to-unprotected read transition. Resolve retention requirements first.

Does Removing Write Protection Always Have the Same Effect?

No. PM0075 separates two cases according to the resulting read-protection state. Have engineering identify the applicable case before accepting a proposed change.

Does a Successful Erase Prove the Device Was Blank or New?

No. It records an operation on a changed device. It cannot establish the earlier contents, manufacturing history, or whether the device meets a new-condition requirement.

What Should a Buyer Request Before Allowing a Protection Change?

Request the exact unit or sample identity, original messages, tool configuration, retention requirement, proposed operation, and expected evidence. Record who permits the change and which purchasing question the result must answer.

Resolve the Preservation Question Before the Erase

Keep the identified material, observed problem, retention requirement, and permitted operation on one review record. Make the unresolved question explicit before allowing a change. Afterward, assess the recorded result against the agreed requirement without extending it to an earlier state or a wider population.

Related guides

Keep reading

All guides →