Prepare the settings the device needs
Boot settings, configuration values and code protection can be programmed alongside the application image. Their permitted values and order of application follow the device’s supported programming method and the released product configuration.
Read protection can remove the access needed for verification or a later update. The sequence therefore completes the required data checks before access is restricted, where that device and selected protection method require it.
Recovery behavior is device-specific. ST, for example, documents flash erasure during some transitions from a protected state to a less restricted state. The selected settings must account for the product’s intended update or recovery route.
Technical background: ST guidance on readout protection.
Separate file handling from device protection
Firmware-file confidentiality and a device’s access restrictions protect different things. An NDA can be discussed for customer files; on-device protection uses the chip’s supported features and the specified product settings.
Discuss product-specific data
A serial number, calibration value or other unit-specific field needs a defined source, storage location and programming or test method. Batch-common values and per-unit data are separated when this work is included in the quoted scope.