<?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 FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1833640#M162</link>
    <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226617" target="_blank" rel="noopener"&gt;@Alex_Wang&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788" target="_blank" rel="noopener"&gt;@Alice_Yang&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) I have put the i2c FLEXCOMM9 function into multi-face detection demo code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) I have two files " i2cTest.c " and " i2cTest.h " prepared to test the i2c function in the multi-face detection code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) I also modify the code in the main.cpp that only add the two lines " #include "i2cTest.h" " and " test() " into it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4) "test()" is added to be the first line in main() such that only the uart and the i2c FLEXCOMM9 is inited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5) After build, download, run the code, the i2c function is failed to run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6) Then, I change the i2c function to blocking mode&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;" reVal = LPI2C_MasterTransferBlocking(EXAMPLE_I2C_MASTER, &amp;amp;masterXfer); "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The i2c in blocking mode is function correctly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;But I need to run the i2c in non-blocking mode. So is there anything I need to modify to enable &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;the i2c non-blocking mode in the multi-face detection code?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The files are attached below.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Please advise,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Carl&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 25 Mar 2024 01:54:01 GMT</pubDate>
    <dc:creator>CarlLee</dc:creator>
    <dc:date>2024-03-25T01:54:01Z</dc:date>
    <item>
      <title>FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1833640#M162</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226617" target="_blank" rel="noopener"&gt;@Alex_Wang&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788" target="_blank" rel="noopener"&gt;@Alice_Yang&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) I have put the i2c FLEXCOMM9 function into multi-face detection demo code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) I have two files " i2cTest.c " and " i2cTest.h " prepared to test the i2c function in the multi-face detection code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) I also modify the code in the main.cpp that only add the two lines " #include "i2cTest.h" " and " test() " into it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4) "test()" is added to be the first line in main() such that only the uart and the i2c FLEXCOMM9 is inited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5) After build, download, run the code, the i2c function is failed to run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6) Then, I change the i2c function to blocking mode&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;" reVal = LPI2C_MasterTransferBlocking(EXAMPLE_I2C_MASTER, &amp;amp;masterXfer); "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The i2c in blocking mode is function correctly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;But I need to run the i2c in non-blocking mode. So is there anything I need to modify to enable &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;the i2c non-blocking mode in the multi-face detection code?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The files are attached below.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Please advise,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Carl&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Mar 2024 01:54:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1833640#M162</guid>
      <dc:creator>CarlLee</dc:creator>
      <dc:date>2024-03-25T01:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1834527#M167</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205968"&gt;@CarlLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have ported your files into led_blinky demo, Flexcomm9 works well as I2C. Also attach the project for you.&lt;/P&gt;
&lt;P&gt;You can refer to this project to porting to multi-face. If it still doesn't work, try to porting the code from multi-face to led_blinky project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 09:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1834527#M167</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-25T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1835311#M169</link>
      <description>&lt;P&gt;Dear&amp;nbsp;@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788" target="_self"&gt;&lt;SPAN class=""&gt;Alice_Yang&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Before putting the i2c function code into the face detection code, I already test the i2c function by creating a blank project and copy and paste the i2c code to it and try to understand it. The code is worked properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I already ignore all the code in face detection and run the i2c code only (Start the i2c code before any face detection code.), but the i2c non-blocking code is not function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Are there any setting (startup or project settings) used by face detection affect the Flexcomm9 i2c function?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp; Since this new face detection code is written in C++ (the old one is written in C), is there anything I need to do before the i2c non-blocking mode can run?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I already spend some time to study the startup code and project settings of the face detection demo but still don't find any clue.&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is impossible for me to port the face detection code to&amp;nbsp;led_blinky project. (I do not know how to debug it when error occurred.)&amp;nbsp; I can only do is to add code to the face detection demo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please advise,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:11:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1835311#M169</guid>
      <dc:creator>CarlLee</dc:creator>
      <dc:date>2024-03-26T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1836886#M176</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205968"&gt;@CarlLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about opening an issue on GitHub ACH repository? The author of this application know it better.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-appcodehub/dm-multiple-face-detection-on-mcxn947" target="_blank"&gt;https://github.com/nxp-appcodehub/dm-multiple-face-detection-on-mcxn947&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 03:26:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1836886#M176</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-28T03:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947 i2c function with the multi-face detection cannot run in non-blocking mode</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1886705#M448</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788" target="_self"&gt;&lt;SPAN class=""&gt;Alice_Yang&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I modify the project such that dual cores are used and add the i2c devices to the second core. The i2c is function well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carl&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 07:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947-i2c-function-with-the-multi-face-detection-cannot/m-p/1886705#M448</guid>
      <dc:creator>CarlLee</dc:creator>
      <dc:date>2024-06-13T07:28:35Z</dc:date>
    </item>
  </channel>
</rss>

