We are having an issue of the MCU bricking when we change the n_SWAP_Bank bit of the User Option bytes. What could be the issue? The issue occurs when we are clearing this bit. Once we clear it the chip bricks.
No SWD Connectivity. Here is a snippet of the codevoid OTAFlashInt_SwapBanks(){
HAL_FLASHEx_OBGetConfig(&OpBytesRW);
if(OpBytesRW.USERConfig & FLASH_OPTR_nSWAP_BANK){
OpBytesRW.USERConfig &= ~FLASH_OPTR_nSWAP_BANK; //set bit high to ...
Hello @SofLit ,This happened when handling Option bytes using STM32Programmer as well as in code.void OTAFlashInt_SwapBanks(){
HAL_FLASHEx_OBGetConfig(&OpBytesRW);
if(OpBytesRW.USERConfig & FLASH_OPTR_nSWAP_BANK){
OpBytesRW.USERConfig...