How to remap from flash bank 1 to 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-25 01:48 PM
I'm setting the FM_MODE bit in SYSCFG.MEMRMP and I get a hardware fault indicating attempted switch to invalid state.
Solved! Go to Solution.
- Labels:
-
Flash
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-26 12:34 AM
I finally found example code in AN4767. I will be following this example to update my software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-25 10:12 PM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-25 11:49 PM
Thanks for your reply. The code is executing in RAM and is executing in the reset start-up code so interrupts are disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-26 12:34 AM
I finally found example code in AN4767. I will be following this example to update my software.