It is believed to have entered VLPS mode.
The total current flowing into the circuit could be reduced from 6 to 70 mA to the present 11 mA.
Rather than reducing it further, I want to get him out of VLPS mode, but I can't get out of it. I want to connect the switch to PTA0 and make him do WAKE().
I checked the example of S32 and the AN5425 PDF file, but they won't wake up after giving me an interrupt. I'm wasting so much time that I'm asking for help.
Personal PCB and not NXP's practice PCB.
SOSC_init_8 MHz();
SPL_init_160 MHz();
NormalRUNmode_40 MHz();
this function is derived from the NXP example clocks_and_modes.c file, where only the system clock is switched to PLL and is being used at 40 MHz.
SCG->RCCR=SCG_RCCR_SCS(6)
On S32DS, when code is DEBUG and SUSPEND, S32CONSOLE says Interrupt command received.Haltting execution
In the code __asmvolatile ("wfi"); green letters are displayed in this area.
I'm trying so many things but I'm hopeless because it doesn't work.. I'm asking for help..
I'll only post something related to VLPS. Please read and help. Please
已解决! 转到解答。
Hello @Oido,
I have just replied to your other case:
https://community.nxp.com/t5/S32K/How-to-enter-VLPS-SLEEP-mode/m-p/1811621/highlight/false#M31841
You really need to do it step by step.
1. Disable all the peripherals that are not used in VLPS.
2. Switch the system clock to SIRC (measure BUS_CLK at CLKOUIT)
3. Disable all the other clock sources
4. Enabled a wakeup interrupt
5. Enter VLPS
I would strongly recommended testing the VLPS entry/exit using a new simple project that does not use PLL / Motor control routines / any periperals except a GPIO wakeup interrupt.
I have already linked a few example that provide you with all you need.
Once you have such a simple project and still have problems, attach the complete project here so that I can test it.
Regards,
Daniel
Hello @Oido,
I have just replied to your other case:
https://community.nxp.com/t5/S32K/How-to-enter-VLPS-SLEEP-mode/m-p/1811621/highlight/false#M31841
You really need to do it step by step.
1. Disable all the peripherals that are not used in VLPS.
2. Switch the system clock to SIRC (measure BUS_CLK at CLKOUIT)
3. Disable all the other clock sources
4. Enabled a wakeup interrupt
5. Enter VLPS
I would strongly recommended testing the VLPS entry/exit using a new simple project that does not use PLL / Motor control routines / any periperals except a GPIO wakeup interrupt.
I have already linked a few example that provide you with all you need.
Once you have such a simple project and still have problems, attach the complete project here so that I can test it.
Regards,
Daniel
First of all, thank you for your reply. I have tried many times to follow such a procedure, but so far I have failed.
I set SCG->RCCR=SCG_RCCR_SCS(2) to set SIRC
SCG->SPLLCSR=SCG_SPLLCSR_SPLLEN(0);
SCG->FIRCCSR=SCG_FIRCCSR_FIRCEN(0);
SCG->SOSCCSR=SCG_SOSCCSR_SOSCEN(0); and several methods were tried to deactivate the clock, but various errors such as CORE IS RUNNING or STARTUP_S32K1XX were experienced.
Today, as soon as I started on main, I went into vlps mode and connected the switch to PTA0 with the PORTA interrupt to wake him up, but I failed to wake him up again after 15 seconds with lpit.
I could only wake you up asleep at the beginning.
I've experienced that it operates at about 50~60mA in vlps mode when it's a normal mode of 11mA, perhaps because it hasn't disabled all the functions.
But this won't be easy but I think I can solve it later if I disable the devices.
For now, I want to focus on getting into vlps mode and escaping.
However, this is a part that was solved only by SMC, PMC register and PORTA interrupt without touching the part about the clock.
Also this part of the light didn't affect the current in use at all, did I disable this incorrectly??