cancel
Showing results for 
Search instead for 
Did you mean: 

How to remap from flash bank 1 to 2.

BSout.2
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
BSout.2
Associate II

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

View solution in original post

3 REPLIES 3
GLASS
Senior

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
Associate II

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
Associate II

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