I have developed battery operated IoT product but am unable set my application to the lowest power mode. This is the code I am using in a FreeRTOS task to set to sleep mode:
// Enter LLS3 STOP mode
lls_config.subMode = kSMC_StopSub3;
lls_config.enableLpoClock = true;
SMC_PreEnterStopModes();
if(SMC_SetPowerModeLls(SMC, &lls_config) != kStatus_Success)
PRINTF("FAIL SMC_SetPowerModeLls FAIL!!!\n\r");
SMC_PostExitStopModes();
BTW, I am running my application in FEI mode by default. Let me know if it is possible to enter into deep low power mode in this state. Let me know if you need further info.