Skip to main content
Associate
Jun 17, 2024 8:23 AM UTC
Solved

STM32H563ZI Flash Bank Swap

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!

This topic has been closed for replies.
Maryem
MaryemBest answer
ST Employee
Jun 20, 2024 2:31 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

6 replies

Maryem
ST Employee
Jun 18, 2024 3:11 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Tesla DeLorean
Guru
Jun 18, 2024 4:13 PM UTC

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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Maryem
ST Employee
Jun 19, 2024 9:22 AM UTC

Hello,

 

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

 

Maryem.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.