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

CARM: can I use __swi and __ram together?

I want to use IAP functions to program a sector of flash, but my program is running in the flash. So I'm using __swi to execute the function as a software interrupt so it will turn off interrupts during the flash erase/write. I also want to run out of RAM so it's not executing in the flash. Can I use __swi and __ram together? The compiler gets syntax errors if I use both. Is there a way to do this?

Parents Reply Children
No data