<?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 Re: LPUART1 RX Interrupt handler not triggered in i.MX RT1062 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/LPUART1-RX-Interrupt-handler-not-triggered-in-i-MX-RT1062/m-p/1585521#M200406</link>
    <description>&lt;P&gt;I finally found that the problem was the missing initialization of SCB-&amp;gt;VTOR (Vector Table Offset Register):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#if defined(__MCUXPRESSO)
    extern uint32_t g_pfnVectors[];  // Vector table defined in startup code
    SCB-&amp;gt;VTOR = (uint32_t)g_pfnVectors;
#endif&lt;/LI-CODE&gt;&lt;P&gt;because __MCUXPRESSO was not defined in my makefile.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 14:25:20 GMT</pubDate>
    <dc:creator>spiderman</dc:creator>
    <dc:date>2023-01-19T14:25:20Z</dc:date>
    <item>
      <title>LPUART1 RX Interrupt handler not triggered in i.MX RT1062</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LPUART1-RX-Interrupt-handler-not-triggered-in-i-MX-RT1062/m-p/1580848#M199925</link>
      <description>&lt;P&gt;I have a MIMXRT1060-EVKB for&amp;nbsp; i.MX RT1062 processor.&lt;/P&gt;&lt;P&gt;I have downloaded the software for&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12604.pdf" target="_self"&gt;Application note AN12604&lt;/A&gt;&amp;nbsp;regarding a second bootloader. I am using the gnu toolchain, so I had to complete the project of the application note with makefile, start up code and some libraries. Following the application note, I was able to start communication with the firmware through blhost and the command: "blhost.exe -p COM7,115200 -- get-property 1". However, only the first part of the communication is working correctly (when polling the RDRF flag), then the other commands are not received. This is the output of blhost:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ping responded in 1 attempt(s)
Inject command 'get-property'
Error: read_start_byte() timeout after 5.154 seconds
sendCommandGetResponse.writePacket error 5.
Response status = 10004 (0x2714) No response packet from target device.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I have verified is that the problem is the LPUART1 IRQ handler is not called.&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downloaded also the SDK example "evkbmimxrt1060_lpuart_interrupt" and this one is working fine. Therefore I tried to compare what is different in my project regarding register settings, vector table and so on with respect to&amp;nbsp;"evkbmimxrt1060_lpuart_interrupt".&lt;/P&gt;&lt;P&gt;It must be some stupid thing, but I am not able to find it.&lt;/P&gt;&lt;P&gt;What I have verified so far:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;interrupts have been enabled globally by setting PRIMASK = 0;&lt;/LI&gt;&lt;LI&gt;BASEPRI = 0;&lt;/LI&gt;&lt;LI&gt;LPUART1-CTRL[RE] = ENABLED;&lt;/LI&gt;&lt;LI&gt;LPUART1-CTRL[RIE] = ENABLED;&lt;/LI&gt;&lt;LI&gt;LPUART1-FIFO[RXFE] = ENABLED (tried disabled but doesn't help);&lt;/LI&gt;&lt;LI&gt;LPUART1-WATER[RXWATER] = 0x0;&lt;/LI&gt;&lt;LI&gt;NVICISER0 = 0x100000;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What else should I check? What could be the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 12:53:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LPUART1-RX-Interrupt-handler-not-triggered-in-i-MX-RT1062/m-p/1580848#M199925</guid>
      <dc:creator>spiderman</dc:creator>
      <dc:date>2023-01-11T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART1 RX Interrupt handler not triggered in i.MX RT1062</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LPUART1-RX-Interrupt-handler-not-triggered-in-i-MX-RT1062/m-p/1585521#M200406</link>
      <description>&lt;P&gt;I finally found that the problem was the missing initialization of SCB-&amp;gt;VTOR (Vector Table Offset Register):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#if defined(__MCUXPRESSO)
    extern uint32_t g_pfnVectors[];  // Vector table defined in startup code
    SCB-&amp;gt;VTOR = (uint32_t)g_pfnVectors;
#endif&lt;/LI-CODE&gt;&lt;P&gt;because __MCUXPRESSO was not defined in my makefile.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 14:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LPUART1-RX-Interrupt-handler-not-triggered-in-i-MX-RT1062/m-p/1585521#M200406</guid>
      <dc:creator>spiderman</dc:creator>
      <dc:date>2023-01-19T14:25:20Z</dc:date>
    </item>
  </channel>
</rss>

