Use the power_down_unused_ram() function

Hello, 

In my code, I would like to use the power_down_unused_ram() function. I included the ram_pwrdn.h file but the build returns with undefined reference to `power_down_unused_ram'. 

I used https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/ram_pwrdn.html as reference.

Is there anything else I should add? I'm using the nrf9161 dk board.

Parents
  • Seems like you forgot to add this below in your prj.conf. 

    CONFIG_RAM_POWER_DOWN_LIBRARY=y
  • I added this configuration but the error continues. This warning also appears:

    warning: RAM_POWER_DOWN_LIBRARY (defined at C:/ncs/v2.6.1/nrf\lib\ram_pwrdn/Kconfig:7) was assigned
    the value 'y' but got the value 'n'. Check these unsatisfied dependencies: (SOC_NRF52840 ||
    SOC_NRF52833 || SOC_NRF5340_CPUAPP) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_RAM_POWER_DOWN_LIBRARY and/or look up
    RAM_POWER_DOWN_LIBRARY in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.

    This config don't work with nRF9161 SiP ?

Reply
  • I added this configuration but the error continues. This warning also appears:

    warning: RAM_POWER_DOWN_LIBRARY (defined at C:/ncs/v2.6.1/nrf\lib\ram_pwrdn/Kconfig:7) was assigned
    the value 'y' but got the value 'n'. Check these unsatisfied dependencies: (SOC_NRF52840 ||
    SOC_NRF52833 || SOC_NRF5340_CPUAPP) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_RAM_POWER_DOWN_LIBRARY and/or look up
    RAM_POWER_DOWN_LIBRARY in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.

    This config don't work with nRF9161 SiP ?

Children
Related