I have followed the Power management AN5425 pdf provided by Nxp for Power mode and exit s32k116.
I have done for RUN to VLPS mode entry and tested the current consumption it is 4mA, But as per datasheet, it should be less than 1mA. So how to further reduce the current consumption by the controller?
And also how to disable the clock monitors?
And if possible also let me know how to come to normal RUN mode through CAN using pretended network mode.
Please let me know.
void RUN_to_VLPS (void)
/* Adjust SCG settings to meet maximum frequencies value */
/* Enable SLEEPDEEP bit in the Core
* (Allow deep sleep modes) */
/* Allow very low power run mode */
SMC->PMPROT |= SMC_PMPROT_AVLP_MASK;
/* Select VLPS Mode */
PMC->REGSC |= PMC_REGSC_BIASEN_MASK;
/* Check if current mode is RUN mode */
if(SMC->PMSTAT == 0x01)
/* Go to deep sleep mode */