<?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>Processor Expert Software中的主题 MCXA153VLH LPUART INTERRUPT</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2145272#M5965</link>
    <description>&lt;P&gt;I'm developing a project based on the MCXA153VLH microprocessor.&lt;/P&gt;&lt;P&gt;It needs to receive data serially using the LPUART1 peripheral in interrupt mode.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__0-1754062818351.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350648i88588A56F2340CA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1754062818351.png" alt="_Ferrari__0-1754062818351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon receiving data, a dedicated interrupt routine named Rs485Interrupt should be called.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__1-1754062881026.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350650iC293C7AABCBDF89B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__1-1754062881026.png" alt="_Ferrari__1-1754062881026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've debugged the code, and the interrupt handler is called correctly,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__2-1754062913014.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350652i3121224BFA571435/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__2-1754062913014.png" alt="_Ferrari__2-1754062913014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the s_lpuartIsr array is not initialized, and the program crashes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__4-1754063033454.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350655iB76CF58C56F4E5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__4-1754063033454.png" alt="_Ferrari__4-1754063033454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you experienced a similar issue? How did you solve it?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2025 15:45:19 GMT</pubDate>
    <dc:creator>_Ferrari_</dc:creator>
    <dc:date>2025-08-01T15:45:19Z</dc:date>
    <item>
      <title>MCXA153VLH LPUART INTERRUPT</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2145272#M5965</link>
      <description>&lt;P&gt;I'm developing a project based on the MCXA153VLH microprocessor.&lt;/P&gt;&lt;P&gt;It needs to receive data serially using the LPUART1 peripheral in interrupt mode.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__0-1754062818351.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350648i88588A56F2340CA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1754062818351.png" alt="_Ferrari__0-1754062818351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon receiving data, a dedicated interrupt routine named Rs485Interrupt should be called.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__1-1754062881026.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350650iC293C7AABCBDF89B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__1-1754062881026.png" alt="_Ferrari__1-1754062881026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've debugged the code, and the interrupt handler is called correctly,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__2-1754062913014.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350652i3121224BFA571435/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__2-1754062913014.png" alt="_Ferrari__2-1754062913014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the s_lpuartIsr array is not initialized, and the program crashes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__4-1754063033454.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350655iB76CF58C56F4E5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__4-1754063033454.png" alt="_Ferrari__4-1754063033454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you experienced a similar issue? How did you solve it?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 15:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2145272#M5965</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2025-08-01T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153VLH LPUART INTERRUPT</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2146387#M5966</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You need to redefine the IRQ, as explained in the tooltip that appears when you hover over the option:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1754339824589.png" style="width: 611px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350853i36D97FD1AC32568C/image-dimensions/611x224?v=v2" width="611" height="224" role="button" title="Habib_MS_0-1754339824589.png" alt="Habib_MS_0-1754339824589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To help with this, you can use the name that you assign to the IRQ handler. for example, the default name "LPUART1_SERIAL_RX_TX_IRQHANDLER", which can be found in peripherals.h:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_1-1754339834965.png" style="width: 621px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350854i43CE8840CB502C5F/image-dimensions/621x381?v=v2" width="621" height="381" role="button" title="Habib_MS_1-1754339834965.png" alt="Habib_MS_1-1754339834965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Additionally, I recommend see the SDK (version 25.6) example titled "lpuart_interrupt". It demonstrates how to properly configure an interrupt and provides a good reference for understanding how it works.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 20:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2146387#M5966</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-08-04T20:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153VLH LPUART INTERRUPT</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2147095#M5967</link>
      <description>&lt;P&gt;Thanks for your help, Habib_MS. I found the solution to the problem. It was because my interrupt handling routine was in a &lt;STRONG&gt;.cpp&lt;/STRONG&gt; file.&lt;/P&gt;&lt;P&gt;Changing the file extension from &lt;STRONG&gt;.cpp&lt;/STRONG&gt; to &lt;STRONG&gt;.c&lt;/STRONG&gt; solved the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 21:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MCXA153VLH-LPUART-INTERRUPT/m-p/2147095#M5967</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2025-08-05T21:56:22Z</dc:date>
    </item>
  </channel>
</rss>

