<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problems in compile function RUN_to_VLPR() in the microcontroller S32K116 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Problems-in-compile-function-RUN-to-VLPR-in-the-microcontroller/m-p/1777266#M29786</link>
    <description>&lt;P&gt;Hi my friends I have a problem in compile the function&amp;nbsp;RUN_to_VLPR()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void RUN_to_VLPR (void)&lt;BR /&gt;{&lt;BR /&gt;/* Disable clock monitors on SCG module */&lt;BR /&gt;disable_clock_monitors();&lt;BR /&gt;/* Adjust SCG settings to meet maximum frequencies value&lt;BR /&gt;Disable SPLL, System Oscillator and FIRC */&lt;BR /&gt;// scg_configure_freq_for_VLPR();&lt;BR /&gt;/* Allow very low power run mode */&lt;BR /&gt;SMC-&amp;gt;PMPROT |= SMC_PMPROT_AVLP_MASK;&lt;BR /&gt;/* Check if current mode is RUN mode */&lt;BR /&gt;if(SMC-&amp;gt;PMSTAT == 0x01)&lt;BR /&gt;{&lt;BR /&gt;/* Reduce MCU power consumption in Very Low Power modes*/&lt;BR /&gt;PMC-&amp;gt;REGSC |= PMC_REGSC_BIASEN_MASK;&lt;BR /&gt;/* Move to VLPR Mode*/&lt;BR /&gt;SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0b10);&lt;BR /&gt;/* Wait for Transition*/&lt;BR /&gt;while(SMC-&amp;gt;PMSTAT != 0x04);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;It gives me some errors&lt;/P&gt;&lt;P&gt;./Sources/main.o: In function `RUN_to_VLPR':&lt;BR /&gt;C:\Users\Instalaciones\Desktop\PBXTODO\PBX\PROGRAMHELLOWORD\hello_world_s32k116\Debug_FLASH/../Sources/main.c:125: undefined reference to `disable_clock_monitors'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:46: hello_world_s32k116.elf] Error 1&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 15:22:04 GMT</pubDate>
    <dc:creator>Eletronicc_23</dc:creator>
    <dc:date>2023-12-19T15:22:04Z</dc:date>
    <item>
      <title>Problems in compile function RUN_to_VLPR() in the microcontroller S32K116</title>
      <link>https://community.nxp.com/t5/S32K/Problems-in-compile-function-RUN-to-VLPR-in-the-microcontroller/m-p/1777266#M29786</link>
      <description>&lt;P&gt;Hi my friends I have a problem in compile the function&amp;nbsp;RUN_to_VLPR()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void RUN_to_VLPR (void)&lt;BR /&gt;{&lt;BR /&gt;/* Disable clock monitors on SCG module */&lt;BR /&gt;disable_clock_monitors();&lt;BR /&gt;/* Adjust SCG settings to meet maximum frequencies value&lt;BR /&gt;Disable SPLL, System Oscillator and FIRC */&lt;BR /&gt;// scg_configure_freq_for_VLPR();&lt;BR /&gt;/* Allow very low power run mode */&lt;BR /&gt;SMC-&amp;gt;PMPROT |= SMC_PMPROT_AVLP_MASK;&lt;BR /&gt;/* Check if current mode is RUN mode */&lt;BR /&gt;if(SMC-&amp;gt;PMSTAT == 0x01)&lt;BR /&gt;{&lt;BR /&gt;/* Reduce MCU power consumption in Very Low Power modes*/&lt;BR /&gt;PMC-&amp;gt;REGSC |= PMC_REGSC_BIASEN_MASK;&lt;BR /&gt;/* Move to VLPR Mode*/&lt;BR /&gt;SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0b10);&lt;BR /&gt;/* Wait for Transition*/&lt;BR /&gt;while(SMC-&amp;gt;PMSTAT != 0x04);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;It gives me some errors&lt;/P&gt;&lt;P&gt;./Sources/main.o: In function `RUN_to_VLPR':&lt;BR /&gt;C:\Users\Instalaciones\Desktop\PBXTODO\PBX\PROGRAMHELLOWORD\hello_world_s32k116\Debug_FLASH/../Sources/main.c:125: undefined reference to `disable_clock_monitors'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:46: hello_world_s32k116.elf] Error 1&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 15:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problems-in-compile-function-RUN-to-VLPR-in-the-microcontroller/m-p/1777266#M29786</guid>
      <dc:creator>Eletronicc_23</dc:creator>
      <dc:date>2023-12-19T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in compile function RUN_to_VLPR() in the microcontroller S32K116</title>
      <link>https://community.nxp.com/t5/S32K/Problems-in-compile-function-RUN-to-VLPR-in-the-microcontroller/m-p/1778081#M29829</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226601"&gt;@Eletronicc_23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The source code can be found in SW package of AN5425:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5425SW&amp;amp;docLang=en" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=AN5425SW&amp;amp;docLang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;AN5425SW.zip\S32K11x_LPUART_TxDMA_VLPS\include\clock.h&lt;/P&gt;
&lt;P&gt;AN5425SW.zip\S32K11x_LPUART_TxDMA_VLPS\src\clock.c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problems-in-compile-function-RUN-to-VLPR-in-the-microcontroller/m-p/1778081#M29829</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-12-20T15:57:08Z</dc:date>
    </item>
  </channel>
</rss>

