How to set up dual-bank STM32L476?
I am trying to set up a dual-bank system using STM32L476 Discovery. What I am wanting to do is:
Flash memory will have enough space for at least 2 complete firmware images. The boot code will have a pointer to the current image in non-volatile Flash memory.
1. Copy new firmware image into flash without overwriting old image
2. Verify new image is not corrupt (CRC check)
3. Change pointer so boot code will use the new image
4. Reboot
If the CRC check does not work, then it defaults to the older image.
I understand that the board has options for dual bank mode. I believe there should be some functionality that makes this quite automated, but I cannot find that information.
I am using ST-Link utility to talk to the discovery board