Is it possible to copy the code stored in the internal or external flash to the internal SRAM and execute it from SRAM ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-18 5:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-18 6:05 AM
You’d need to check out how you declare functions/files to run from the ram with your compiler. It will be linked to a specific RAM address and the startup code will copy it to the correct place in ram from the flash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-18 6:10 AM
One would need to be aware of whether the code is free standing or has dependencies outside itself. But in the general sense I can copy code to RAM and run it there.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-23 11:57 AM
The linker should generate the code where it would ultimately be placed.
This would bring best performance benefits when having both interrupt vectors and ISR functions in SRAM to prevent ART accelerator jumps in Flash.
When the core has code cache memory, external serial memories performance is much improved.
