How to execute code from RAM on nRF51 using GCC Environment
How to execute code from RAM on nRF51 using GCC Environment
Hi Håkon,
I just put the adverise_init into RAM to test whether attribute((used, long_call, section(".data"))) command will work or not. Right now I am thinking about what are the functions i can run from the RAM. Do you have any document or can you share some information about what are the functions in general/softdevice calls i can move it to RAM, So that i can achieve the maximum power optimization.
Note: The reason i am trying to execute code from RAM instead of flash is to optimize the power. When i check the nRF51822 version 3.1 product specification doc , i found there is 1.7 mA current consumption difference between Flash and RAM code execution.
Regards, Anand
Hi Håkon,
I just put the adverise_init into RAM to test whether attribute((used, long_call, section(".data"))) command will work or not. Right now I am thinking about what are the functions i can run from the RAM. Do you have any document or can you share some information about what are the functions in general/softdevice calls i can move it to RAM, So that i can achieve the maximum power optimization.
Note: The reason i am trying to execute code from RAM instead of flash is to optimize the power. When i check the nRF51822 version 3.1 product specification doc , i found there is 1.7 mA current consumption difference between Flash and RAM code execution.
Regards, Anand