How to execute code from RAM on nRF51 using GCC Environment
How to execute code from RAM on nRF51 using GCC Environment
Hi,
You can place a function in RAM in GCC like this:
__attribute__((used, long_call, section(".data"))) void some_func(void)
{
do_something();
}
Then you should check the .map file to see that it's located somewhere in RAM (0x2000XYZZ)
Cheers, Håkon
Hi Håkon,
Thanks a lot for your reply. I will implement this and let you know the status.
Regards, Anand
Hi Håkon,
Thanks a lot for your reply. I will implement this and let you know the status.
Regards, Anand