Hi ST Team,
Currently i am using STM32H523RCT6 mcu for one of my project.
In this i want to set the read out protection of level 1.
Currently i am using below sequence to set the read out protection of level 1 protection..
// Unlock the flash option bytes
HAL_FLASH_Unlock();
// Set the read out protection level to Level 1
// RDP Level 1 is indicated by the value 0x01
uint32_t option_bytes = 0x01; // RDP Level 1
HAL_FLASH_OB_Unlock();
// Program the option byte
HAL_FLASHEx_OBProgram(&option_bytes);
// Start the option byte change
//HAL_FLASH_OB_Launch();
// Lock the option bytes
HAL_FLASH_OB_Lock();
// Lock the flash memory
HAL_FLASH_Lock();
HAL_FLASH_OB_Launch();
but this is not working.....
So can you please send me a sample code or routine to set the read out protection of level 1.
Thanks with Regards,
DEEPAK