This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

More/almost same current consumption when executing code from RAM instead of flash

Hi ,

According to nRF51822 Product Specification, running code from flash draws about 4.1mA and running it from RAM draws 2.4mA. But when I tested my code it draws more current/almost same when executing code from RAM compared to flash execution.

Below are the software version i am using for my development

1.GCC environment. 2.SD S110 7.1.0 3.SDK 6.1.0

I am using attribute((used, long_call, section(".data"))) for the functions(whichever I am defined) to move to RAM except Soft device calls since softdevice calls executes from flash only.

Please let me know the reason for this.

Regards, Anand

Related