STM32H7 swap problem
I am facing difficulty in making bank swapping example code to work, provided in STM32Cube_FW_H7_V1.8.0.
I had tried the following options
- I had flashed the "FLASH_SwapBank_Bank1.bin" and "FLASH_SwapBank_Bank2.bin" file onto the respective banks and observed that only the respective bank LED is toggling.
- I had created two projects respectively for each bank along with the linker files and flashed both the .bin files and observed that only the respective bank LED is toggling.
In both the above cases bank swapping is not happening.
I am attaching the main files and the linker files. can any one guide me, if any mistake is made in these.
Linker file changes Bank 1
/* Memories definition */
MEMORY
{
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512K
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
}
Bank 2
/* Specify the memory areas */
MEMORY
{
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512K
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x8100000, LENGTH = 1024K
}
