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.