Skip to main content
Associate
June 17, 2024
Solved

STM32H563ZI Flash Bank Swap

  • June 17, 2024
  • 2 replies
  • 3058 views

Hello all,

I am currently developing on the STM32H563ZI and encountered an issue where, when swapping to Bank 2 to erase/write flash, it simultaneously erases the same address in Bank 1. Here are the steps I followed:

  1. Swapped to Bank 2.
  2. Used STM Programmer 2.16.0 to flash a bin file to the address 0x8100000.
  3. Used STM Programmer 2.16.0 again to flash the same bin file to the address 0x8000000.

At this point, the code initially flashed to 0x8100000 was erased. Subsequent tests with writing only a few bytes also resulted in the same situation.

Are there any settings I can adjust to avoid this situation?

Thank you very much!

Best answer by Maryem

Hello @IanLin,

 

Thank you for your feedback. We're working on a fix that will be included in a future release. I'll make sure to keep you informed on the progress. Your understanding is appreciated !

 

Maryem.

2 replies

Maryem
Technical Moderator
June 18, 2024

Hello @IanLin ,

 

I've tried to replicate the problem but everything worked fine for me. Can you share your option bytes config and the binary file ?

Thank you in advance !

 

Maryem.

Tesla DeLorean
Guru
June 18, 2024

Logging output at Level 3 might also be helpful to understand the process / sequences

Try merging the TWO .BIN files into a singular .HEX file and applying that in a SINGLE operation.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Maryem
Technical Moderator
June 19, 2024

Hello,

 

Thank you @Tesla DeLorean for the valuable suggestions ! @IanLin This issue will be resolved in an upcoming software release.

 

Maryem.