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??
FTM0->SC &= ~FTM_SC_CLKS_MASK;//FTM끄기
FTM1->SC &= ~FTM_SC_CLKS_MASK;//FTM끄기
CAN0->MCR |= CAN_MCR_MDIS_MASK;//끄기 가능
PCC->PCCn[PCC_FTM0_INDEX] = PCC_PCCn_PCS(0) | PCC_PCCn_CGC(0); 클럭활성화, FTM0 활성화
PCC->PCCn[PCC_FTM1_INDEX] = PCC_PCCn_PCS(0) | PCC_PCCn_CGC(0); 클럭활성화, FTM1 활성화
PCC->PCCn[PCC_ADC0_INDEX] = PCC_PCCn_PCS(0) | PCC_PCCn_CGC(0); ADC0에 출력
ADC0->SC1[0] = ADC_SC1_AIEN(0); ADC OFF 채널4,5 활성화
It refers to FTM, ADC0, etc.
I will try harder, but if I fail, I would like to get help by sending you a project file. All I can do for you is thank you so much.