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

how to put M33 MCU in nRF9160 sleep mode(Imcuoffo)

Hi,

Are there any sample code to put M33 MCU in nRF9160 SOC in sleep mode (Imcuoffo).

With regards,

Praveen Palaparthi

Parents
  • Hi Praveen,
    I assume you will not use the nrf9160 for a Serial modem (thin modem) and can overlook the SLM functionality in what was described earlier.

    Here is the documentation for System OFF mode for the M33.

    To just put the MCU to SYSTEM OFF mode you can use the three functions in the snippet shared earlier.

    #include <lte_lc.h>

    #include <bsd.h>

    #include <hal/nrf_regulators.h>

     

    void enter_sleep(void)

    {

                    /*

                     * The LTE modem also needs to be stopped by issuing a command

                     * through the modem API, before entering System OFF mode.

                     * Once the command is issued, one should wait for the modem

                     * to respond that it actually has stopped as there may be a

                     * delay until modem is disconnected from the network.

                     * Refer to infocenter.nordicsemi.com/.../

                     * pmu.html?cp=2_0_0_4_0_0_1#system_off_mode

                     */

                    lte_lc_offline();

                    bsd_shutdown();

                    nrf_regulators_system_off(NRF_REGULATORS_NS);

    }

    Please follow the links for more info on each.

Reply
  • Hi Praveen,
    I assume you will not use the nrf9160 for a Serial modem (thin modem) and can overlook the SLM functionality in what was described earlier.

    Here is the documentation for System OFF mode for the M33.

    To just put the MCU to SYSTEM OFF mode you can use the three functions in the snippet shared earlier.

    #include <lte_lc.h>

    #include <bsd.h>

    #include <hal/nrf_regulators.h>

     

    void enter_sleep(void)

    {

                    /*

                     * The LTE modem also needs to be stopped by issuing a command

                     * through the modem API, before entering System OFF mode.

                     * Once the command is issued, one should wait for the modem

                     * to respond that it actually has stopped as there may be a

                     * delay until modem is disconnected from the network.

                     * Refer to infocenter.nordicsemi.com/.../

                     * pmu.html?cp=2_0_0_4_0_0_1#system_off_mode

                     */

                    lte_lc_offline();

                    bsd_shutdown();

                    nrf_regulators_system_off(NRF_REGULATORS_NS);

    }

    Please follow the links for more info on each.

Children
No Data
Related