STM32H7743I-EVAL board, FLASH_SwapBank example code not swapping the code?
For the upcoming project planning to use the STM32H family of uC and try to run code from flash bank1 and use the bank2 for staging the new firmware.
Once staged firmware CRC check would like to swap the code from bank2 to bank1 and reboot the device to start booting from bank1.
To start with, got the STM32H7743I-EVAL board, FLASH_SwapBank example code with the following order:
- Compiled FLASH_SwapBank1 code with the following changes:
BSP_LED_Off(LED1);
BSP_LED_On(LED2);
BSP_LED_Off(LED3);
- Compiled FLASH_SwapBank2 code with the following changes:
BSP_LED_On(LED1);
BSP_LED_Off(LED2);
BSP_LED_On(LED3);
- Erased the full chip using the STM32CubeProgramming
- Loaded the Bank2 .elf in 0x08100000 using the STM32CubeProgramming - (Bank2 start address)
- Loaded the Bank1 .elf in 0x08000000 using the STM32CubeProgramming - (Bank1 start address)
- Read the code from both bank1 and bank2 and made sure the code is loaded properly.
After rebooting the Eval board, found that the code running from bank1 by looking at the LEDs behavior. When I pressed the “Tamper�? button the assumption is the LED behavior will change.
But it is not happening.
Appreciated help on this.
