<?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>LPC MicrocontrollersのトピックRe: USART interrupt handler is invoked only once if Free RTOS API used inside it</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2098190#M58195</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am using LPC55S69.&lt;/P&gt;&lt;P&gt;Finally I found the root cause of the issue.&lt;BR /&gt;As part of the processing the received message, in one of the function I am mistakenly using a global array index, the same was used in interrupt handler, due to this there was an array out of bound issue happening.&lt;BR /&gt;After using a local variable for index, there is no more issue seen.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 13:53:04 GMT</pubDate>
    <dc:creator>sushmasan</dc:creator>
    <dc:date>2025-05-15T13:53:04Z</dc:date>
    <item>
      <title>USART interrupt handler is invoked only once if Free RTOS API used inside it</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2096720#M58186</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am seeing an issue, where the USART interrupt handler is invoking only once when I use the free rtos API inside usart interrupt handler, even though there is a new data arrived.&lt;/P&gt;&lt;P&gt;This is the API called from usart interrupt handler,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BaseType_t xHigherPriorityTaskWoken = pdFALSE;
						xSemaphoreGiveFromISR(RcvSemaphore(), &amp;amp;xHigherPriorityTaskWoken);
						portYIELD_FROM_ISR(xHigherPriorityTaskWoken);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment the free RTOS api everything works fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did anyone see similar type of issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The reason why I am using freertos api inside the interrupt handler is, I have created free task and in the task handler where I am waiting for a semaphore, which is released from usart interrupt handler when all the data is received, so in the free rtos task handler the data will be processed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 18:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2096720#M58186</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-05-13T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: USART interrupt handler is invoked only once if Free RTOS API used inside it</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2098090#M58194</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask which chip you are using?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2098090#M58194</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-05-15T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: USART interrupt handler is invoked only once if Free RTOS API used inside it</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2098190#M58195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am using LPC55S69.&lt;/P&gt;&lt;P&gt;Finally I found the root cause of the issue.&lt;BR /&gt;As part of the processing the received message, in one of the function I am mistakenly using a global array index, the same was used in interrupt handler, due to this there was an array out of bound issue happening.&lt;BR /&gt;After using a local variable for index, there is no more issue seen.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 13:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-handler-is-invoked-only-once-if-Free-RTOS-API/m-p/2098190#M58195</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-05-15T13:53:04Z</dc:date>
    </item>
  </channel>
</rss>

