2021-03-07 09:28 PM
We are using STM32L5 Nucleo board and TZEN is enabled and DBANK mode is enabled too..!
How to switch dual bank mode to single bank mode in option bytes(if any h/w or s/w changes)??
Please explain the procedure to understand what are the changes needed to be done before I uncheck DBANK option byte in Cube programmer...?
Solved! Go to Solution.
2021-03-10 02:43 AM
Hello @Pkhot.1 and welcome to the STM32 Community =)
To disable DBANK and switch from DBANK=1 to DBANK=0 (from dual bank to single) it is recommended to execute the code from the SRAM or use the bootloader.
To avoid reading corrupted data from the Flash when the memory organization is changed, any access (either CPU or DMAs) to Flash memory should be avoided before reprogramming.
This is applicable when TZEN is disabled or enabled, with a small difference when TZEN = 1 being that the DBANK can only be modified when all secure protections are disabled : secure watermark (SEC WM) or block-based area (SECBB) .
For more details, you can refer to the RM0438 :
Please mark my answer as best by clicking on the "Select as Best" button, if it answered your question :smiling_face_with_smiling_eyes: This will help other users find this solution more quickly.
Imen
2021-03-10 02:43 AM
Hello @Pkhot.1 and welcome to the STM32 Community =)
To disable DBANK and switch from DBANK=1 to DBANK=0 (from dual bank to single) it is recommended to execute the code from the SRAM or use the bootloader.
To avoid reading corrupted data from the Flash when the memory organization is changed, any access (either CPU or DMAs) to Flash memory should be avoided before reprogramming.
This is applicable when TZEN is disabled or enabled, with a small difference when TZEN = 1 being that the DBANK can only be modified when all secure protections are disabled : secure watermark (SEC WM) or block-based area (SECBB) .
For more details, you can refer to the RM0438 :
Please mark my answer as best by clicking on the "Select as Best" button, if it answered your question :smiling_face_with_smiling_eyes: This will help other users find this solution more quickly.
Imen