Skip to main content
Visitor II
September 24, 2025
Question

STM32G474 On-the-Fly Flash Update: Handling ramfunc and CCMRAM Functions

  • September 24, 2025
  • 1 reply
  • 366 views

Currently, on the STM32G474, I am able to perform on-the-fly flash operations and interrupt vector relocation using BF_MODE and VTOR.

However, I have encountered an issue: when a function is placed in RAM using the ramfunc attribute or located in CCMRAM, how can I still achieve on-the-fly operation?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 30, 2025

    Hello @Leo_Yang_1985 ,

    Yo may find recommendations in this application note AN4296 to optimize performance when using CCMRAM for code execution. Make sure that the code execution is not affected by cache behavior as described in the errata-sheet.