cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 Bank1 Flashing Problem from Bank2

SDembededDev
Visitor

I am trying to do OTA programming modifications using the DUAL bank feature of my STM32U575 IC with 1Mbyte of memory.

I have successfully done this when the program starts in BANK 1 and I reflash BANK 2. I change the User Option byte to OB_SWAP_BANK_ENABLE and the board reboots and successfully runs from BANK 2.

Now, on the next firmware update, programming BANK 1 when I am operating from BANK 2 the HAL_FLASH_Program command fails on the first byte.

The erase code is attached and it is very similar to others I have found on GIT for other products. Does the U5 have an inherent defect?

 

any help would be greatly appreciated.

0 REPLIES 0