STM32H563ZI Flash Bank Swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-17 1:23 AM - last edited on ‎2024-06-19 3:48 AM by mƎALLEm
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:
- Swapped to Bank 2.
- Used STM Programmer 2.16.0 to flash a bin file to the address 0x8100000.
- 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!
Solved! Go to Solution.
- Labels:
-
STM32H5 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-20 7:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 8:11 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 9:13 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-19 2:22 AM - edited ‎2024-06-19 3:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-19 3:41 AM
Hi @Maryem ,
Thank you for your reply. The swap configuration is as follows:
Additionally, I performed other tests with similar results.
Steps are as follows:
Step1:Erase all sectors
Step2:Swap_Bank set 1
Step3:Write some bytes to 0x8100000
Step4:Write 4 bytes to 0x8000000
At the same time, the data originally written to 0x8100000 gets erased.
This is the programmer configuration:
Thank you!
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-20 7:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-24 2:46 AM
Hi @Maryem
I am also experiencing similar issues with STM32H5 FLASH programming with STCubeProgrammer when BANK_SWAP is enabled.
Could you advise when an update to STCubeProgrammer is expected?
Kind regards,
Simon
