User bootloader, bootloader
Hi all, I'm working on user bootloader in stm32l4p5 board. I'm facing problem in dual bank swapping. My plan is to keep bootloader code in bank 2 and application code in bank1. When ever a new bin file is available I will switch to bank2 ,after erasing bank1 and programming it, I will switch back to bank1.
In the above process I followed the required steps for bank swapping that is changing vector offset to 0x00080000 for bank2 and 0x00000000 and also managed to keep flash adress as 0x08000000 for bank1 and 0x08080000 for bank 2.
Bank 1 to bank2 switching is done properly but bank2 to 1 is not happening. It's going to either HARDFAULT Or jumping to 0x1FFFF000 address.
Is there any additional steps required to switch from bank2 to bank 1? Suggest if any ideas
Can any one provide sample code to test swapping between bank1 and 2 vice versa.