Problems in compile function RUN_to_VLPR() in the microcontroller S32K116

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems in compile function RUN_to_VLPR() in the microcontroller S32K116

376 Views
Eletronicc_23
Contributor I

Hi my friends I have a problem in compile the function RUN_to_VLPR()

 

void RUN_to_VLPR (void)
{
/* Disable clock monitors on SCG module */
disable_clock_monitors();
/* Adjust SCG settings to meet maximum frequencies value
Disable SPLL, System Oscillator and FIRC */
// scg_configure_freq_for_VLPR();
/* Allow very low power run mode */
SMC->PMPROT |= SMC_PMPROT_AVLP_MASK;
/* Check if current mode is RUN mode */
if(SMC->PMSTAT == 0x01)
{
/* Reduce MCU power consumption in Very Low Power modes*/
PMC->REGSC |= PMC_REGSC_BIASEN_MASK;
/* Move to VLPR Mode*/
SMC->PMCTRL = SMC_PMCTRL_RUNM(0b10);
/* Wait for Transition*/
while(SMC->PMSTAT != 0x04);
}
}

It gives me some errors

./Sources/main.o: In function `RUN_to_VLPR':
C:\Users\Instalaciones\Desktop\PBXTODO\PBX\PROGRAMHELLOWORD\hello_world_s32k116\Debug_FLASH/../Sources/main.c:125: undefined reference to `disable_clock_monitors'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:46: hello_world_s32k116.elf] Error 1

I don`t find that function in any library, when I can find the fuction disable_clock_monitors () so the program can compile without any problem.

Best Regards.

0 Kudos
Reply
1 Reply

355 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Eletronicc_23,

The source code can be found in SW package of AN5425:

https://www.nxp.com/webapp/Download?colCode=AN5425SW&docLang=en

AN5425SW.zip\S32K11x_LPUART_TxDMA_VLPS\include\clock.h

AN5425SW.zip\S32K11x_LPUART_TxDMA_VLPS\src\clock.c

 

Regards,

Daniel

 

 

0 Kudos
Reply