<?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 power_mode_switch_s32k144 print function not working in S32K</title>
    <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405720#M13813</link>
    <description>&lt;P&gt;&amp;nbsp;working on low power mode SDK of S32k144 in which print function(&lt;SPAN&gt;print((const char *)MENU_MESSAGE ADD_MESSAGE);&lt;/SPAN&gt;) is not working not displaying any messages on putty and as per code i set baudrate as 9600.unable to see any response&amp;nbsp; and readoptionconsole function is also not executing.is there any problem with this SDK code.Please support this issue to solve the problem.&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;/* Variable used for storing user option */&lt;BR /&gt;uint8_t option;&lt;BR /&gt;/* Variable used for storing core frequency */&lt;BR /&gt;uint32_t frequency;&lt;BR /&gt;/* Variable used for status of changing mode */&lt;BR /&gt;status_t retV = STATUS_SUCCESS;&lt;BR /&gt;/* Buffer for sprintf operations */&lt;BR /&gt;char buffer[20];&lt;/P&gt;&lt;P&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt;#ifdef PEX_RTOS_INIT&lt;BR /&gt;PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */&lt;BR /&gt;#endif&lt;BR /&gt;/*** End of Processor Expert internal initialization. ***/&lt;/P&gt;&lt;P&gt;/* Initialize and configure clocks&lt;BR /&gt;* - see clock manager component for details&lt;BR /&gt;*/&lt;BR /&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;/* Initialize pins&lt;BR /&gt;* - See PinSettings component for more info&lt;BR /&gt;*/&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;/* Initialize Power Manager&lt;BR /&gt;* - See PowerSettings component for more info&lt;BR /&gt;*/&lt;BR /&gt;POWER_SYS_Init(&amp;amp;powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &amp;amp;powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;/* Initialize LPUART for host - board configurations */&lt;BR /&gt;LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);&lt;/P&gt;&lt;P&gt;/* Install hander for Button ISR */&lt;BR /&gt;INT_SYS_InstallHandler(PORTC_IRQn, ButtonISR, (isr_t *)0);&lt;BR /&gt;/* Enable button port IRQ */&lt;BR /&gt;INT_SYS_EnableIRQ(PORTC_IRQn);&lt;/P&gt;&lt;P&gt;/*Board EVB - red led off&lt;BR /&gt;Board MB - led 0 off */&lt;BR /&gt;PINS_DRV_WritePin(LED_PORT, LED_0, 1);&lt;BR /&gt;/*Board EVB - green led on&lt;BR /&gt;Board MB - led 1 on */&lt;BR /&gt;PINS_DRV_WritePin(LED_PORT, LED_1, 0);&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;/* Print menu */&lt;/P&gt;&lt;P&gt;print((const char *)MENU_MESSAGE ADD_MESSAGE);&lt;BR /&gt;/* Read user option */&lt;BR /&gt;readOptionFromConsole(&amp;amp;option);&lt;/P&gt;&lt;P&gt;/* If the option is valid configure the CPU power mode accordingly */&lt;BR /&gt;switch (option)&lt;BR /&gt;{&lt;BR /&gt;/* HSRUN */&lt;BR /&gt;case '1':&lt;BR /&gt;/* Set power mode to HSRUN */&lt;BR /&gt;retV = POWER_SYS_SetMode(HSRUN, POWER_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;if (retV == STATUS_SUCCESS)&lt;BR /&gt;{&lt;BR /&gt;print((const char*)"************************ CPU is in HSRUN.\r\n");&lt;BR /&gt;print((const char*)"************************ Core frequency: ");&lt;BR /&gt;/* Get current core clock frequency */&lt;BR /&gt;(void)CLOCK_SYS_GetFreq(CORE_CLOCK, &amp;amp;frequency);&lt;BR /&gt;/* Transform the frequency from decimal to string */&lt;BR /&gt;sprintf(buffer, "%ld", frequency);&lt;BR /&gt;/* Print CPU frequency */&lt;BR /&gt;print(buffer);&lt;BR /&gt;print((const char*)"[Hz] \r\n");&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 09:01:04 GMT</pubDate>
    <dc:creator>thailivenkatesh8</dc:creator>
    <dc:date>2022-01-27T09:01:04Z</dc:date>
    <item>
      <title>power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405720#M13813</link>
      <description>&lt;P&gt;&amp;nbsp;working on low power mode SDK of S32k144 in which print function(&lt;SPAN&gt;print((const char *)MENU_MESSAGE ADD_MESSAGE);&lt;/SPAN&gt;) is not working not displaying any messages on putty and as per code i set baudrate as 9600.unable to see any response&amp;nbsp; and readoptionconsole function is also not executing.is there any problem with this SDK code.Please support this issue to solve the problem.&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;/* Variable used for storing user option */&lt;BR /&gt;uint8_t option;&lt;BR /&gt;/* Variable used for storing core frequency */&lt;BR /&gt;uint32_t frequency;&lt;BR /&gt;/* Variable used for status of changing mode */&lt;BR /&gt;status_t retV = STATUS_SUCCESS;&lt;BR /&gt;/* Buffer for sprintf operations */&lt;BR /&gt;char buffer[20];&lt;/P&gt;&lt;P&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt;#ifdef PEX_RTOS_INIT&lt;BR /&gt;PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */&lt;BR /&gt;#endif&lt;BR /&gt;/*** End of Processor Expert internal initialization. ***/&lt;/P&gt;&lt;P&gt;/* Initialize and configure clocks&lt;BR /&gt;* - see clock manager component for details&lt;BR /&gt;*/&lt;BR /&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;/* Initialize pins&lt;BR /&gt;* - See PinSettings component for more info&lt;BR /&gt;*/&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;/* Initialize Power Manager&lt;BR /&gt;* - See PowerSettings component for more info&lt;BR /&gt;*/&lt;BR /&gt;POWER_SYS_Init(&amp;amp;powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &amp;amp;powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;/* Initialize LPUART for host - board configurations */&lt;BR /&gt;LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);&lt;/P&gt;&lt;P&gt;/* Install hander for Button ISR */&lt;BR /&gt;INT_SYS_InstallHandler(PORTC_IRQn, ButtonISR, (isr_t *)0);&lt;BR /&gt;/* Enable button port IRQ */&lt;BR /&gt;INT_SYS_EnableIRQ(PORTC_IRQn);&lt;/P&gt;&lt;P&gt;/*Board EVB - red led off&lt;BR /&gt;Board MB - led 0 off */&lt;BR /&gt;PINS_DRV_WritePin(LED_PORT, LED_0, 1);&lt;BR /&gt;/*Board EVB - green led on&lt;BR /&gt;Board MB - led 1 on */&lt;BR /&gt;PINS_DRV_WritePin(LED_PORT, LED_1, 0);&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;/* Print menu */&lt;/P&gt;&lt;P&gt;print((const char *)MENU_MESSAGE ADD_MESSAGE);&lt;BR /&gt;/* Read user option */&lt;BR /&gt;readOptionFromConsole(&amp;amp;option);&lt;/P&gt;&lt;P&gt;/* If the option is valid configure the CPU power mode accordingly */&lt;BR /&gt;switch (option)&lt;BR /&gt;{&lt;BR /&gt;/* HSRUN */&lt;BR /&gt;case '1':&lt;BR /&gt;/* Set power mode to HSRUN */&lt;BR /&gt;retV = POWER_SYS_SetMode(HSRUN, POWER_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;if (retV == STATUS_SUCCESS)&lt;BR /&gt;{&lt;BR /&gt;print((const char*)"************************ CPU is in HSRUN.\r\n");&lt;BR /&gt;print((const char*)"************************ Core frequency: ");&lt;BR /&gt;/* Get current core clock frequency */&lt;BR /&gt;(void)CLOCK_SYS_GetFreq(CORE_CLOCK, &amp;amp;frequency);&lt;BR /&gt;/* Transform the frequency from decimal to string */&lt;BR /&gt;sprintf(buffer, "%ld", frequency);&lt;BR /&gt;/* Print CPU frequency */&lt;BR /&gt;print(buffer);&lt;BR /&gt;print((const char*)"[Hz] \r\n");&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 09:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405720#M13813</guid>
      <dc:creator>thailivenkatesh8</dc:creator>
      <dc:date>2022-01-27T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405935#M13816</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195011"&gt;@thailivenkatesh8&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you test the SDK power_switch_S32K144 example as is without any modification?&lt;/P&gt;
&lt;P&gt;Just to be sure, do you use an EVB or your own custome board?&lt;/P&gt;
&lt;P&gt;Do you select the correct port?&lt;/P&gt;
&lt;P&gt;Have you tried with a different terminal emulator?&lt;/P&gt;
&lt;P&gt;You can scope the LPUART1_TX pin to see the transmitted data.&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;</description>
      <pubDate>Thu, 27 Jan 2022 10:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405935#M13816</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-27T10:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405973#M13818</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &amp;nbsp;Danielmartynek,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using Electronika distributor NXP&amp;nbsp; board ,for EVB at PTC13 SW3 is there&amp;nbsp; for My board added Switch at PTC15 and used Default SDK without changing the code couldn't executed the print statements and observed no data on TX pin.&lt;/P&gt;&lt;P&gt;in Second case edited code for PTC15 as input and external interrupt as rising edge in this case also print statement is not executed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 10:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1405973#M13818</guid>
      <dc:creator>thailivenkatesh8</dc:creator>
      <dc:date>2022-01-27T10:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406023#M13819</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195011"&gt;@thailivenkatesh8&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Which version of S32DS IDE and the SDK do you use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 12:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406023#M13819</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-27T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406024#M13820</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp; &amp;nbsp;Danielmartynek,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Using&amp;nbsp; S32DS_ARM_v2.2 IDE &amp;amp; S32SDK_S32K1xx_RTM_3.0.0 SDK&amp;nbsp; driver examples power switch mode .&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 12:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406024#M13820</guid>
      <dc:creator>thailivenkatesh8</dc:creator>
      <dc:date>2022-01-27T12:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406091#M13822</link>
      <description>&lt;P&gt;I just tested the example (RTM 3.0.0), and it works as expected.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1643294672470.png" style="width: 750px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/169042iFD3136547D4DFCF6/image-dimensions/750x402?v=v2" width="750" height="402" role="button" title="danielmartynek_0-1643294672470.png" alt="danielmartynek_0-1643294672470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What EVB version do you have?&lt;/P&gt;
&lt;P&gt;You should find labels on the board.&lt;/P&gt;
&lt;P&gt;Also, please read the maskset number on the MCU package (it should be one of those: 0N77P, 0N47T, 0N57U)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406091#M13822</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-27T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406386#M13825</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp; &amp;nbsp;Danielmartynek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; We are using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EVB Version: Electronika BMS V 3.0-14S &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Maskset number on the MCU package:0N57U.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 04:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406386#M13825</guid>
      <dc:creator>thailivenkatesh8</dc:creator>
      <dc:date>2022-01-28T04:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: power_mode_switch_s32k144 print function not working</title>
      <link>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406582#M13831</link>
      <description>&lt;P&gt;Thank you for the information &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195011"&gt;@thailivenkatesh8&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I can't find any documentation to the board online.&lt;/P&gt;
&lt;P&gt;Does it support any USB emulated UART like the NXP S32K144 EVB?&lt;/P&gt;
&lt;P&gt;Anyway, if you use the SDK example as it is without any modification, you should see the TX signal at PTC7.&lt;/P&gt;
&lt;P&gt;Unless there is something different connected to the pin, which I can't tell as I don't have the schematic of the board.&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;</description>
      <pubDate>Fri, 28 Jan 2022 11:21:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/power-mode-switch-s32k144-print-function-not-working/m-p/1406582#M13831</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-28T11:21:19Z</dc:date>
    </item>
  </channel>
</rss>

