This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt handling: Flalsh or RAM

Hi,,,
In ARM7 we have the ability to execute code from RAM or flash memory.
So what are the pros and cons for each one?

cheers

  • I hope this isn't a school assignment.

    A very, very incomplete list:
    - RAM looses it's contents on power-off. Flash doesn't.
    - You (or your init code) need to copy the routines from flash to RAM on startup.
    - Running interrupt handlers in RAM may allow you to continue servicing interrupts while flashing new contents - a number of chips forbids all access to flash while writing to a flash page.