2024-06-17 01:23 AM - last edited on 2024-06-19 03:48 AM by SofLit
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:
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.
2024-06-20 07: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.
2024-06-18 08: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.
2024-06-18 09: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.
2024-06-19 02:22 AM - edited 2024-06-19 03:43 AM
Hello,
Thank you @Tesla DeLorean for the valuable suggestions ! @IanLin This issue will be resolved in an upcoming software release.
Maryem.
2024-06-19 03: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
2024-06-20 07: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.
2024-06-24 02: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