How to execute code from RAM on nRF51 using GCC Environment
How to execute code from RAM on nRF51 using GCC Environment
Hi Anand, In theory you can run all your code in RAM if you have the space. However; it seems like gcc does not like it when you try to put standard functions (like memset from string.h) in RAM. This functionality is more towards the compiler suite that you're using rather than nordic specific functionality, so we do not really have any guidelines on this. Note that even if you put calls to the softdevice into RAM, the softdevice will still access the flash to run it's own functions.
Cheers, Håkon
Hi Anand, In theory you can run all your code in RAM if you have the space. However; it seems like gcc does not like it when you try to put standard functions (like memset from string.h) in RAM. This functionality is more towards the compiler suite that you're using rather than nordic specific functionality, so we do not really have any guidelines on this. Note that even if you put calls to the softdevice into RAM, the softdevice will still access the flash to run it's own functions.
Cheers, Håkon