STM32G474RET6: Always boot from bank1 and to jump bank2
Hello
In STM32G474RET6 I want to have 2 banks. Bank 1 for golden (boot image) and Bank 2 for an application image.
As I want to have a robust solution I always want to boot from Bank 1 (address: 0x8000000), to check if valid firmware exist in Bank 2 (address 0x8040000) and if ok to jump to Bank 2 and to run firmware stored there.
My code based on FLASH_DualBoot example of STM32Cube_FW_G4_V1.5.0 is working ok, but it is not good enough for me as it toggle the boot between Bank 1 and Bank 2.
Where I can't find simple example code that will simply jump to Bank 2 from Bank 1 (and still remain boot from Bank 1 after next power up)?
Thank you.
Alex