2026-05-06 2:14 PM - last edited on 2026-05-06 2:17 PM by Andrew Neil
STM32H523CET6 stuck in PRODUCT_STATE=0x17 (PROVISIONING)
TZEN=0xC3 (disabled), DA not configured, BOOT_UBE=0xB4
CubeProgrammer v2.22, all regression attempts fail
debugauth=2 returns: "unable to boot on RSS_DA or is in OPEN mode"
After this function it bricked:
void LockCode(void)
{
FLASH_OBProgramInitTypeDef OBInit = {0};
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
HAL_FLASHEx_OBGetConfig(&OBInit);
if (OBInit.ProductState == OB_PROD_STATE_OPEN)
{
OBInit.OptionType = OPTIONBYTE_PROD_STATE;
OBInit.ProductState = OB_PROD_STATE_PROVISIONING;
HAL_FLASHEx_OBProgram(&OBInit);
HAL_FLASH_OB_Launch();
}
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
}Edited to apply source code formatting - please see How to insert source code for future reference.
2026-05-19 2:39 AM
Hi @Lorenzetto,
You could try these steps:
1- Boot on bootloader (BOOT0 at VDD)
2- Connect in Hotplug mode and provision the device with the default obk file through the "Secure programming > provisioning tab" (For your case it's "....STM32CubeProgrammer\bin\DA_Default_Config\STM32H5\NonCrypto\DA_Config_Password.obk")
3- Disconnect, go to "Secure programming > DA" and discover. Put in the default password (at "...STM32CubeProgrammer\bin\DA_Default_Config\STM32H5\password.bin") and perform a full regression.
Let me know if you find this helpful.
Aziz
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.