I am not able to flash/load code into 2nd bank of STM32U575VGT6 MCU.
We are using STM32U575VGT6 MCU with 1 MB Flash(Two Banks of 512 KB).
We are using entire flash as a single bank, by unchecking DBANK bit in Option byte).
Start address of My image is 0x08000000 but when image size exceeds 0x8000(i.e. image spread across both bank), Then STM32CubeProgrammer write only upto 0x0807FFFF. (Facing same issue when download using IAR ).
Then i tried to debug further and found that if i follow following steps then its work.
- Erase entire flash using STMCubeProgrammer (Full Chip Erase)
- Download the image(downloads succeeds with both IAR/STMCubeProgrammer).
- Repeat step 1 and 2 to re-download.
Please help me to resolve the issue so that i would not require to erase entire flash every time manually.
I think programmer shall erase all sectors of image and download the new image with out needs to be erase manually.
For you info using ST link V2 programmer
Thanks in Advance!!
