<?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: lpi2c_rtos having issues when used with powermode_switch in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1323612#M15882</link>
    <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Just to clarify, you would like me to switch to lpspi? Or upload the demo project code I've been using for lpi2c?&lt;BR /&gt;-- I'm sorry for the above typo error, I was wondering if you can upload a simple demo project based on freertos_lpi2c that can replicate the issue.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 02:58:52 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2021-08-16T02:58:52Z</dc:date>
    <item>
      <title>lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1320719#M15748</link>
      <description>&lt;P&gt;I've been trying to use lpi2c for rtos to establish communication between mx rt1021 and arduino uno. I used the freertos_lpi2c demo app to make sure my hardware setup was correct and it worked just fine. I transferred that code into a larger project which uses the powermode_switch demo application rtos settings, but the code won't work in the new project. When the code reaches the lpi2c_transfer function, all tasks get suspended and transfer won't complete, even with error. I am a little lost because all of the code is the same and the hardware setup is the same as well. Are there any settings in the powermode_switch demo app that would affect i2c communication?&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the code can be found in "peripherals.c" and "idle_task.c" at the link provided below, if it is of any help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AA-CubeSat-Team/soci_cdh_rtos/tree/dev_idleTask/cdh_prototype" target="_blank"&gt;https://github.com/AA-CubeSat-Team/soci_cdh_rtos/tree/dev_idleTask/cdh_prototype&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 03:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1320719#M15748</guid>
      <dc:creator>tbtbtbt</dc:creator>
      <dc:date>2021-08-10T03:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1321003#M15759</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Before answering your question, I was wondering if you can list the steps of merging code in detail.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 10:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1321003#M15759</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-10T10:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1321417#M15778</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;The code was copied and pasted into the demo app project environment. The only differences are that the initialization code for I2C1 itself is placed in a separate function which is called from main before tasks are created and the scheduler is started. This also includes setting the clock speed and priority at nvic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 01:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1321417#M15778</guid>
      <dc:creator>tbtbtbt</dc:creator>
      <dc:date>2021-08-11T01:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322309#M15827</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;According to your description, the idle_task seems like fail to transmit the data via the I2C interface.&lt;BR /&gt;If my understanding is right, I'd like to suggest you just initialize the I2C_1, then give it a try again.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 03:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322309#M15827</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-12T03:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322866#M15853</link>
      <description>&lt;P&gt;Yes that's correct.&lt;/P&gt;&lt;P&gt;I've initialized the I2C_1 interface and made sure that all of the routing details are the same as when I run the demo project, but this still doesn't fix the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 01:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322866#M15853</guid>
      <dc:creator>tbtbtbt</dc:creator>
      <dc:date>2021-08-13T01:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322927#M15858</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I was wondering if you can upload a simple demo project based on freertos_lpspi_b2b_master that can replicate the issue, then I can test it on my board and figure it out.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 03:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1322927#M15858</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-13T03:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1323473#M15873</link>
      <description>&lt;P&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify, you would like me to switch to lpspi? Or upload the demo project code I've been using for lpi2c?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 17:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1323473#M15873</guid>
      <dc:creator>tbtbtbt</dc:creator>
      <dc:date>2021-08-14T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1323612#M15882</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Just to clarify, you would like me to switch to lpspi? Or upload the demo project code I've been using for lpi2c?&lt;BR /&gt;-- I'm sorry for the above typo error, I was wondering if you can upload a simple demo project based on freertos_lpi2c that can replicate the issue.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 02:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1323612#M15882</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-16T02:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1327245#M15981</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I recreated the issue by copying the working lpi2c code into the powermode_switch demo app. Our overall project was copied into the powermode_switch demo app environment so I'm fairly certain this has isolated the problem.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 20:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1327245#M15981</guid>
      <dc:creator>tbtbtbt</dc:creator>
      <dc:date>2021-08-22T20:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: lpi2c_rtos having issues when used with powermode_switch</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1328339#M16014</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;The LPI2C_RTOS_Transfer function will haven't returned the kStatus_Success flag when the slave device doesn't give the correct response.&lt;BR /&gt;In another word, the LPI2C_RTOS_Transfer function will fail to transfer the complete data, just as the below shows, the slave device can't give ACK to the master device during the interaction process.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_1-1629790829606.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/153822iACA8385484E362C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_1-1629790829606.png" alt="jeremyzhou_1-1629790829606.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So I'd like to suggest to check the slave device work well.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 07:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/lpi2c-rtos-having-issues-when-used-with-powermode-switch/m-p/1328339#M16014</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-24T07:40:41Z</dc:date>
    </item>
  </channel>
</rss>

