Skip to main content
BSout.2
Associate
August 25, 2021
Solved

How to remap from flash bank 1 to 2.

I'm setting the FM_MODE bit in SYSCFG.MEMRMP and I get a hardware fault indicating attempted switch to invalid state.

This topic has been closed for replies.
BSout.2
BSout.2Best answer
Associate
August 26, 2021

I finally found example code in AN4767. I will be following this example to update my software.

3 replies

GLASS
Visitor II
August 26, 2021

Hi, when​ swapping between flash bank, you need to execute from Ram and take care of disabling interrupt before. Otherwise instruction fetching can get in trouble..

BSout.2
BSout.2Author
Associate
August 26, 2021

Thanks for your reply. The code is executing in RAM and is executing in the reset start-up code so interrupts are disabled.

BSout.2
BSout.2AuthorBest answer
Associate
August 26, 2021

I finally found example code in AN4767. I will be following this example to update my software.