<?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>S32KのトピックRe: When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
    <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1763948#M29028</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,Lukas:&lt;/P&gt;Thank you for your answer.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I think it's time for me to use another method to periodically output data.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;One more question, can I go through Processor Expert to modify the interrupt priority to achieve the function output at LPIT? But it seems that there is no option to do so in the interrupt_manager module or in the UART module.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jau&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Nov 2023 09:35:27 GMT</pubDate>
    <dc:creator>Jau</dc:creator>
    <dc:date>2023-11-27T09:35:27Z</dc:date>
    <item>
      <title>When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
      <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1762793#M28931</link>
      <description>&lt;P&gt;I am currently developing with the S32K144.&lt;/P&gt;&lt;P&gt;Use IDE:S32 Design Studio for ARM Version 2.2&lt;/P&gt;&lt;P&gt;I configured a 200ms cycle lpit and used LPUART_DRV_SendDataBlocking() in the interrupt callback function to send data through the serial port cycle.But the program gets stuck at OSIF_SemaWait().&lt;/P&gt;&lt;P&gt;Similarly, the same situation occurs with SPI_MasterTransferBlocking().&lt;/P&gt;&lt;P&gt;Normal output when using non-blocking interface.&lt;/P&gt;&lt;P&gt;I tried to use this post's approach (&lt;A href="https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977504" target="_blank"&gt;https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977504&lt;/A&gt;), but it didn't work.&lt;/P&gt;&lt;P&gt;What should I do to use the blocking class interface properly？&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1762793#M28931</guid>
      <dc:creator>Jau</dc:creator>
      <dc:date>2023-11-23T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
      <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1763888#M29021</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209385"&gt;@Jau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is caused by priorities, most likely. Even if you call blocking function, an interrupt is used anyway (if DMA is not configured). You can take a look at source code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1701074546743.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251568i9AE2E534BCFE4993/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1701074546743.png" alt="lukaszadrapa_0-1701074546743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, if LPIT has higher priority, it won't work.&lt;/P&gt;
&lt;P&gt;To avoid such issues, I would use non-blocking function in interrupt handlers.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 08:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1763888#M29021</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-11-27T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
      <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1763948#M29028</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,Lukas:&lt;/P&gt;Thank you for your answer.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I think it's time for me to use another method to periodically output data.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;One more question, can I go through Processor Expert to modify the interrupt priority to achieve the function output at LPIT? But it seems that there is no option to do so in the interrupt_manager module or in the UART module.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jau&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Nov 2023 09:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1763948#M29028</guid>
      <dc:creator>Jau</dc:creator>
      <dc:date>2023-11-27T09:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
      <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1764802#M29080</link>
      <description>&lt;P&gt;You need to use function INT_SYS_SetPriority().&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 09:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1764802#M29080</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-11-28T09:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: When using blocking related code, the program is stuck in OSIF_SemaWait()</title>
      <link>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1765331#M29119</link>
      <description>&lt;P&gt;I will give it a try, thanks for the reply!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jau&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 02:31:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-blocking-related-code-the-program-is-stuck-in-OSIF/m-p/1765331#M29119</guid>
      <dc:creator>Jau</dc:creator>
      <dc:date>2023-11-29T02:31:58Z</dc:date>
    </item>
  </channel>
</rss>

