Question
HAL_FLASH_OB_Launch() Hangs STM32L5
I'm attempting to enable the SRAM2 parity bits on an STM32L552, and any time I call HAL_FLASH_OB_Launch, the chip hangs. I've also tried directly setting the OBL_LAUNCH bit in the NCSR register with the same results.
I've looked through some of the L5 examples, but none of them show a different order of operations than what I'm doing:
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
FLASH->OPTR &= ~((1 << 24) | (1 << 25));
HAL_FLASH_OB_Launch();
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();Is there something I'm missing?
