Skip to main content
Visitor II
May 6, 2026
Question

STM32H523CET6 stuck in PRODUCT_STATE=0x17 (PROVISIONING)

  • May 6, 2026
  • 1 reply
  • 161 views

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.

1 reply

Aziz BRIGUI
Technical Moderator
May 19, 2026

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.