The "SystemClock_Config ()" is generated by CubeMX, I haven't enabled any interrupts in the testcode. After the code is generated by CubeMX I have added the code related to reading of the CFGBZY flag after SystemClock_Config function call, and the is...
I don't think the issue is in the user code, I have written a test code just to simulate this issue. The issue has been observed immediately after "SystemClock_Config (); " function call. And there is no other user code other than reading the CFGBZY ...
I have found a fix for CFGBSY not clearing issue.Write some random data to an address inside the page that you are going to erase/write before unlocking the flash for writing. uint32_t PageError = 0;
static FLASH_EraseInitTypeDef EraseInitStruc...