<?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中的主题 LPUART_DRV_SendDataPolling is risky</title>
    <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataPolling-is-risky/m-p/1956084#M41026</link>
    <description>&lt;P&gt;when two tasks call this function at the same time, it can cause it to go into an endless loop.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if one task is printing data , but task scheduling otther task. other task also print data. when it comlete print data, it would disable transmitter. if so , when come back to first task , it will go into&amp;nbsp; endless loop.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhiguoguo_0-1726624940378.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299551iB573F63F23B0947D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhiguoguo_0-1726624940378.png" alt="zhiguoguo_0-1726624940378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 02:02:36 GMT</pubDate>
    <dc:creator>zhiguoguo</dc:creator>
    <dc:date>2024-09-18T02:02:36Z</dc:date>
    <item>
      <title>LPUART_DRV_SendDataPolling is risky</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataPolling-is-risky/m-p/1956084#M41026</link>
      <description>&lt;P&gt;when two tasks call this function at the same time, it can cause it to go into an endless loop.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if one task is printing data , but task scheduling otther task. other task also print data. when it comlete print data, it would disable transmitter. if so , when come back to first task , it will go into&amp;nbsp; endless loop.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhiguoguo_0-1726624940378.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299551iB573F63F23B0947D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhiguoguo_0-1726624940378.png" alt="zhiguoguo_0-1726624940378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 02:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataPolling-is-risky/m-p/1956084#M41026</guid>
      <dc:creator>zhiguoguo</dc:creator>
      <dc:date>2024-09-18T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataPolling is risky</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataPolling-is-risky/m-p/1956572#M41062</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it is a general issue when two tasks share the same HW resource - a workaround need to be programmed.&lt;/P&gt;
&lt;P&gt;You need to use semaphore/mutex - see&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Semaphore_(programming)" target="_blank"&gt;Semaphore (programming) - Wikipedia&lt;/A&gt;. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 10:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataPolling-is-risky/m-p/1956572#M41062</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2024-09-18T10:34:57Z</dc:date>
    </item>
  </channel>
</rss>

