Standby mode for S128

Hi,

I need some advice to set the S128 into sleep or standby mode. I follow the example and some of the post on the forum but don't see any change on the power consumption on the S128-DK


if (MODE == LPMV2_LOW_POWER_MODE_SLEEP)
{
   g_lpmv2_sleep_mode.p_api->init (); 
   g_lpmv2_sleep_mode.p_api->lowPowerCfg (g_lpmv2_sleep_mode.p_cfg); 
   g_lpmv2_sleep_mode.p_api->lowPowerModeEnter (); 
}

if (MODE == LPMV2_LOW_POWER_MODE_STANDBY)
{
   g_lpmv2_standby_mode.p_api->init (); 
   g_lpmv2_standby_mode.p_api->lowPowerCfg (g_lpmv2_standby_mode.p_cfg); 
   g_lpmv2_standby_mode.p_api->lowPowerModeEnter (); 
}

 

Thanks.

  • Hi Copper,

    Have you had a chance to look at Low-Power Modes and Mode Transitions on the DK-S124 - Application Project ? It's for S124, but can be ported to use S128.

    Regards,
    adboc

  • In reply to adboc:

    Hi Copper,
    Just to add to adboc's comments, how are you trying to observe the power saving?
    For example, when placing the S128 into sleep mode, any interrupt will wake the device. Therefore, if you have any interrupts occurring in your system then this is why you do not see any change in current consumption.
    In software standby mode, by default the debugger will not allow the device to enter SW Standby mode. You have to enable low power mode and run an associated script file.
    This is all detailed in the module guide that adboc has made reference to
    Regards,
    Richard
  • In reply to Richard:

    Hi Richard,
    " by default the debugger will not allow the device to enter SW Standby mode"
    Does this mean " enable low power mode and run an associated script file" is not required if I don't have a J-Link debugger attach to the target board?

    Thanks.
  • In reply to Copper:

    Correct.
    However, please note:
    If you program the device via the J-Link debugger and simply end the debug session in e2, the debug circuit will still be active. You have to power cycle the board.