Reset product state to open by firmware with mass erase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-03 11:41 PM - edited ‎2025-02-04 12:03 AM
Hello.
Is it possible to reset the product state from closed to open
internaly by the firmware on a STM32H563?
Can i do this easy by rewriting the ProductState to 0xED, or do i need additional provision information or the provisioning password to do this?
I don't want to kill my stm32-board, if i rewrite the product state and there is no way to do a Regression with STM32CubeProgrammer after this..
FLASH_OBProgramInitTypeDef OB;
HAL_FLASHEx_OBGetConfig(&OB);
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
OB.ProductState = OB_PROD_STATE_OPEN;
if ( HAL_FLASHEx_OBProgram(&OB) != HAL_OK )
{
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
return HAL_ERROR;
}
HAL_FLASH_OB_Launch();
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
- Labels:
-
STM32H5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-05 9:32 PM
Hello.
No one there, who has done this?
The Ref-manual from the STM32H5, page 296 of 3152 says, there is a possibility to change the product state from:
- closed to regression, and from:
- regression to open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-05 1:27 AM
hi, did you manage to solve this problem?
