2024-09-05 06:22 AM - edited 2024-09-05 06:28 AM
Hello community,
I'm struggling to get the dual bank feature to work with the STM32F765 as in the X-CUBE-DBANK-F7 example shown. Following situation:
I have two similar FWs, only a different LED is toggled. In the OB I set the nDBank to 0 and defined the BOOT_ADD0 to 0x08000000. Then I loaded the FW1 at start location 0x08000000 and FW2 at 0x08100000, as described in AN4826 for a MCU with 2 MB flash memory organisation. BOOT0 pin is on GND.
Initially, FW1 runs without any problems. But none of the LEDs light up when BOOT_ADD0 is changed to 0x08100000 inside the CubeProgrammer.
Here are some of the solutions I have tried:
I would be very grateful for any input that could help me!
Warmest regards
Anno
2024-09-05 06:34 AM
Hello,
Refer to this simple example from STM32CubeF7 on github. It can help you: https://github.com/STMicroelectronics/STM32CubeF7/tree/master/Projects/STM32F769I_EVAL/Examples/FLASH/FLASH_SwapBank
2024-09-05 07:13 AM
Hey and thank you for your fast reply.
I'm familiar with this example but it didn't help me. I had taken a few lines from this example, like the MPU_Config() and the CPU_CACHE_Enable().
It seem like the MSU freezes after the change of BOOT_ADD0. Sometimes one LED is on but does not toggle.
With the executing of HAL_EnableMemorySwappingBank() the same behavior occurs but after a reset FW1 is running again.