I am trying to put the S32K118 into sleep mode (VLPR or VLPS) to reduce current consumption. For this, I have configured two clock structures—one for RUN mode and another for VLPR mode. Additionally, I have disabled all peripherals except PORT A and PORT D in the .MEX file for VLPR mode.
Expected Output: Current should be reduced to below 1–2mA.
Actual Output: Current is not reduced.
I need assistance in achieving microampere-level current consumption in sleep mode. Please provide the correct code sequence to configure the S32K118 from RUN mode to sleep mode. I have already tested an example project :power_mode_switch_s32k118:, which reduced the current to 6mA.
Additionally, I need to configure a wakeup source to wake up the MCU from sleep mode. In S32K344, there is a dedicated WKPU driver available for configuring the wakeup source. However, in S32K118, as per my understanding, there is no separate driver for wakeup configuration.
Please help me resolve these two issues as soon as possible.
Thank you!