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 also trying to write firmware through the USB port on the discovery board using ST-Link utility, but it is not working either. The only way I can write to the board is by using the IAR debugging mode. when I try to connect to it using the ST-Link tool all I get is no ST-Link detected.
Any information to help with this would be very helpful