<?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>i.MX ProcessorsのトピックRe: iMXRT1024 - LPI2C FreeRTOS mode missing interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1703169#M210616</link>
    <description>&lt;P&gt;we will look into this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 17:54:09 GMT</pubDate>
    <dc:creator>Irene</dc:creator>
    <dc:date>2023-08-10T17:54:09Z</dc:date>
    <item>
      <title>iMXRT1024 - LPI2C FreeRTOS mode missing interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1703155#M210615</link>
      <description>&lt;P&gt;CPU - iMXRT1024&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;When using config tools to configure the LPI2C with FreeRTOS mode, there is no option to configure the interrupts. Without any interrupts, the OS never knows that the transfer is finished, and the task is suspended indefinetley.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the proper IRQ name by changing the i2c mode to Interrupt, and copying it, then enabling the interrupt (and priority) throught the NVIC. Then switch i2c mode back to FreeRTOS and update the code, and the RTOS no longer hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also getting a status value returned of 902, which I believe is i2c READ ONLY, which makes very little sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any information on this subject?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 17:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1703155#M210615</guid>
      <dc:creator>GUnderdown</dc:creator>
      <dc:date>2023-08-10T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 - LPI2C FreeRTOS mode missing interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1703169#M210616</link>
      <description>&lt;P&gt;we will look into this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 17:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1703169#M210616</guid>
      <dc:creator>Irene</dc:creator>
      <dc:date>2023-08-10T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 - LPI2C FreeRTOS mode missing interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1845983#M222438</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am using a RT1064B custom board with MCUXPresso SDK 2.15.0.&lt;/P&gt;&lt;P&gt;I encountered also the problem, that the "LPI2C_RTOS_Transfer" function freezed waiting for the completion semaphore.&lt;/P&gt;&lt;P&gt;Debugging the problem into detail showed, that the completion semaphore was not given in the interrupt callback dew to incorrect or missing interrupt prioritization for the particular LPI2C interrupt.&lt;/P&gt;&lt;P&gt;Therefore I put the following line just befor the return in function "LPI2C_RTOS_Init" in file "fsl_lpi2c_freertos.c":&lt;/P&gt;&lt;PRE&gt;NVIC_SetPriority(kLpi2cIrqs[LPI2C_GetInstance(base)], 15);&lt;/PRE&gt;&lt;P&gt;This solved the problem and I can use the LPI2C in FreeRTOS mode now.&lt;/P&gt;&lt;P&gt;Maybe this should be taken into account for the configuration options for LPI2C in FreeRTOS mode in the peripherals tool.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marco.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Apr 2024 09:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-LPI2C-FreeRTOS-mode-missing-interrupt/m-p/1845983#M222438</guid>
      <dc:creator>MSchulz</dc:creator>
      <dc:date>2024-04-12T09:31:46Z</dc:date>
    </item>
  </channel>
</rss>

