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

Power down/on a RAM section

Hi,

I'm trying to find a way to power down and on again a RAM section, but I haven't had any luck finding.

In the SDK examples, there's a RAM retention example only, but I'm interested in power down a RAM section.

If there's any documents or examples, it would be great.

Best Regards,

Parents Reply
  • Hello Seung,

    Yes, writing 0x3 to RAM[0].POWERCLR will turn off section 0 and 1 in RAM0. I'm not sure how many cycles it takes, but you can read back the RAM[0].POWER register to check the current setting. This should work as a synchronization barrier as well. Note that the RAM block will be powered when the chip is in debug interface mode.

    You can write 0x3 to RAM[0].POWERSET to enable the RAM sections again as you said. NRF_POWER->RAM[0].POWERCLR = 0 will not have any effect.

    Best regards,

    Vidar

Children
Related