ST STM32WB0 Security Product Lifecycle
Jump to navigation
Jump to search
The STM32WB0 series of devices uses simple readout protection features. SEGGER implemented support for these features via a dedicated utility called Device Provisioner. For more information about this, please refer to the Device Provisioner article. STM32WB0 Security Lifecycle features are implemented in the PCode_DevPro_ST_STM32WB0.pex script file.
Important notes
- When the device enters Deepstop mode, the SWD debug port is not powered. Therefore the result of any of the following operations is not guaranteed.
One possible recovery option is to activate the internal embedded UART bootloader through the PA10 pin (just force PA10 high during hardware reset).
Usage
DevPro -operation [operation_name] -if SWD -speed 4000 -ScriptFile PCode_DevPro_ST_STM32WB0.pex
Operation | Description |
---|---|
CheckLockStatus | Displays the current lock status. |
UnlockDevice | Unlocks device by performing mass errase. |
LockDevice | Enables readout protection. |
PermanentLockDevice | Enables permanent protection. The device can no longer be accessed. |
Examples
Checking lock status:
devpro -operation CheckLockStatus -if SWD -speed 4000 -ScriptFile "PCode_DevPro_ST_STM32WB0.pex" SEGGER Device Provisioner V7.98b Compiled Jul 31 2024 16:14:05 'q' to quit '?' for help Command line: -operation CheckLockStatus -if SWD -speed 4000 -ScriptFile PCode_DevPro_ST_STM32WB0.pex Opened script file: 'PCode_DevPro_ST_STM32WB0.pex' J-Link log: Device is not locked
Enabling readout protection:
devpro -operation LockDevice -if SWD -speed 4000 -ScriptFile "PCode_DevPro_ST_STM32WB0.pex" SEGGER Device Provisioner V7.98b Compiled Jul 31 2024 16:14:05 'q' to quit '?' for help Command line: -operation LockDevice -if SWD -speed 4000 -ScriptFile PCode_DevPro_ST_STM32WB0.pex Opened script file: 'PCode_DevPro_ST_STM32WB0.pex' J-Link log: Device is locked successfully
Disabling readout protection:
devpro -operation UnlockDevice -if SWD -speed 4000 -ScriptFile "PCode_DevPro_ST_STM32WB0.pex" SEGGER Device Provisioner V7.98b Compiled Jul 31 2024 16:14:05 'q' to quit '?' for help Command line: -operation UnlockDevice -if SWD -speed 4000 -ScriptFile PCode_DevPro_ST_STM32WB0.pex Opened script file: 'PCode_DevPro_ST_STM32WB0.pex' J-Link log: Device is unlocked successfully