<?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 LPUART_DRV_SendDataBlocking hang in OSIF_SemaWait? in S32K</title>
    <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1414940#M14032</link>
    <description>&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;I am using a customized board with a S32K118 chip on it, running FreeRTOS.&lt;/P&gt;&lt;P&gt;I've referred to the "lpuart_echo_s32k118" example and tried to verify the UART communication on my board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Initialization starts here&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;POWER_SYS_Init(&amp;amp;powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &amp;amp;powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LPUART_DRV_Init(INST_LPUART0, &amp;amp;lpuart0_State, &amp;amp;lpuart0_InitConfig0);&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Other Initialization such as PWM, I2C and several GPIO pins&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;LPUART_DRV_SendDataBlocking(INST_LPUART0, (uint8_t *)welcomeMsg, strlen(welcomeMsg), 100);&amp;nbsp; &amp;nbsp;// In the example, this function is called after "LPUART_DRV_Init" returns STATE_SUCCESS, so I supposed I can do so as well.&lt;/P&gt;&lt;P&gt;// Initialization ends here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't implemented a RX handler yet since I want to test the TX behavior first.&lt;/P&gt;&lt;P&gt;After I enter debug mode and run the program, all the functions are able to executed until&amp;nbsp;LPUART_DRV_SendDataBlocking. I traced down to&amp;nbsp;OSIF_SemaWait and seemed like it didn't respond judging from the system didn't run to the debug point I set at `if (syncStatus == STATUS_TIMEOUT)`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already compare other settings in Processor Experts like `clock_manager`, `lpuart` and 'pin_mux' between my code and the example. Nothing seems to be particularly different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please kindly offer some suggestions which I can look into, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 03:22:40 GMT</pubDate>
    <dc:creator>APU</dc:creator>
    <dc:date>2022-02-17T03:22:40Z</dc:date>
    <item>
      <title>LPUART_DRV_SendDataBlocking hang in OSIF_SemaWait?</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1414940#M14032</link>
      <description>&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;I am using a customized board with a S32K118 chip on it, running FreeRTOS.&lt;/P&gt;&lt;P&gt;I've referred to the "lpuart_echo_s32k118" example and tried to verify the UART communication on my board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Initialization starts here&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;POWER_SYS_Init(&amp;amp;powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &amp;amp;powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LPUART_DRV_Init(INST_LPUART0, &amp;amp;lpuart0_State, &amp;amp;lpuart0_InitConfig0);&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Other Initialization such as PWM, I2C and several GPIO pins&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;LPUART_DRV_SendDataBlocking(INST_LPUART0, (uint8_t *)welcomeMsg, strlen(welcomeMsg), 100);&amp;nbsp; &amp;nbsp;// In the example, this function is called after "LPUART_DRV_Init" returns STATE_SUCCESS, so I supposed I can do so as well.&lt;/P&gt;&lt;P&gt;// Initialization ends here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't implemented a RX handler yet since I want to test the TX behavior first.&lt;/P&gt;&lt;P&gt;After I enter debug mode and run the program, all the functions are able to executed until&amp;nbsp;LPUART_DRV_SendDataBlocking. I traced down to&amp;nbsp;OSIF_SemaWait and seemed like it didn't respond judging from the system didn't run to the debug point I set at `if (syncStatus == STATUS_TIMEOUT)`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already compare other settings in Processor Experts like `clock_manager`, `lpuart` and 'pin_mux' between my code and the example. Nothing seems to be particularly different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please kindly offer some suggestions which I can look into, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 03:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1414940#M14032</guid>
      <dc:creator>APU</dc:creator>
      <dc:date>2022-02-17T03:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataBlocking hang in OSIF_SemaWait?</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1415288#M14044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if have FreeRTOS running, try to call&amp;nbsp;&lt;SPAN&gt;LPUART_DRV_SendDataBlocking after scheduler is started, i.e. in some task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 12:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1415288#M14044</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-02-17T12:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataBlocking hang in OSIF_SemaWait?</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1415634#M14048</link>
      <description>&lt;P&gt;Dear Petrs,&lt;/P&gt;&lt;P&gt;Your suggestion works.&lt;/P&gt;&lt;P&gt;I am curious about the theory behind this. Would you explain what other things should I be aware of when implementing a non-rtos example to my rtos project?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 01:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-hang-in-OSIF-SemaWait/m-p/1415634#M14048</guid>
      <dc:creator>APU</dc:creator>
      <dc:date>2022-02-18T01:44:54Z</dc:date>
    </item>
  </channel>
</rss>

