Question
How to enable SRAM parity bit without using STM32CubeProgrammer
I am trying to enable the SRAM parity check, code snippet is as follows:
FLASH_OBProgramInitTypeDef config;
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
HAL_FLASHEx_OBErase();
HAL_FLASHEx_OBGetConfig(&config);
config.USERConfig = 0x00;
HAL_FLASHEx_OBProgram(&config);
HAL_FLASH_OB_Launch();
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
The code gets stuck at HAL_FLASH_OB_Launch(); and the IAR IDE hangs and exits out of debug mode.
