<?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: Getting Start with MX RT1170 EVK and I2C in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1297454#M6207</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your advice,&amp;nbsp;I will implement your suggestions!&lt;/P&gt;&lt;P&gt;Yesterday morning I copied the exampel for GPIO-Polling, saved it as .slx-fiel and inserted the I2C-block. I configured the model for the external, downloaded it and it it worked the first time. As thought about changes between the first test model and this model, I detected that i remove all necessary pins in the mcuxpresso settings,&amp;nbsp;except for uart and lpi2c pins.&lt;/P&gt;&lt;P&gt;Could this have caused the problems?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 07:37:06 GMT</pubDate>
    <dc:creator>allmo</dc:creator>
    <dc:date>2021-06-24T07:37:06Z</dc:date>
    <item>
      <title>Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1291957#M6161</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to use the MX RT1170 evalboard as a rapid control prototyping system together with Matlab and Simulink and the model based design toolbox. My first step is to integrate an I2C sensor into the system and read sensor values into simulink. I want to connect the sensor to the provided arduino interface (analog in, pin 4 &amp;amp;5).&lt;/P&gt;&lt;P&gt;I took a short at the examples in the model based design toolbox, but either the docu is missing or it is the wrong one for the example.&lt;/P&gt;&lt;P&gt;I am not sure wether i need to use the block LPI2C or the FlexIO I2C blocks.&lt;/P&gt;&lt;P&gt;Are there any schematics where I can see which pins of the cpu belong to the arduino?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1291957#M6161</guid>
      <dc:creator>allmo</dc:creator>
      <dc:date>2021-06-14T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1292388#M6164</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187850"&gt;@allmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can get the schematics of the board from the nxp site:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1170-evaluation-kit:MIMXRT1170-EVK," target="_blank"&gt;https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1170-evaluation-kit:MIMXRT1170-EVK,&lt;/A&gt;&amp;nbsp;under &lt;STRONG&gt;Design Resources&lt;/STRONG&gt; -&amp;gt;&amp;nbsp;&lt;STRONG&gt;Printed Circuit Boards and Schematics&lt;/STRONG&gt;&lt;SPAN class="count"&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="count"&gt;&lt;SPAN&gt;You can use LPI2C peripheral and look into the examples what pins are being used.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As for the toolbox examples on LPI2C, you need to browse to the example directory to see the right help/readme file: e.g if you open the &lt;STRONG&gt;evkmimxrt1170_lpi2c_master_trans_recv.mdl&lt;/STRONG&gt; and want to see its readme, type in the command window:&lt;/P&gt;
&lt;P&gt;[ex_path, ~] = fileparts(which('evkmimxrt1170_lpi2c_master_trans_recv')); cd(ex_path);&lt;/P&gt;
&lt;P&gt;in &lt;STRONG&gt;Readme.html&lt;/STRONG&gt; you can find the SDA and SCL pins mapping and in the file with &lt;STRONG&gt;.mex&lt;/STRONG&gt; extension (MCUX Configuration File) you can find exactly the settings done for LPI2C. To open the &lt;STRONG&gt;.mex&lt;/STRONG&gt; file from simulink, open a NXP simulink block (e.g &lt;STRONG&gt;LPI2C Read&lt;/STRONG&gt;) and press the &lt;STRONG&gt;Configure&lt;/STRONG&gt; button. This will open the &lt;STRONG&gt;.mex&lt;/STRONG&gt; file with MCUX Configuration Tool, you can make changes there and just save the file before returning back to Simulink. In Simulink press the Update button for the changes done in the &lt;STRONG&gt;.mex&lt;/STRONG&gt; file to be read back in Simulink,&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Alexandra&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1292388#M6164</guid>
      <dc:creator>nxa11767</dc:creator>
      <dc:date>2021-06-15T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293221#M6176</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/123994"&gt;@nxa11767&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Especially the schematics helped me a lot to understand how to interact with the arduino interface.&lt;/P&gt;&lt;P&gt;Additionally I found all the documentations for the examples!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a first test i created the following model to receive the data from the i2c sensor over the external mode:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="allmo_0-1623841088221.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147208iC43E93CA11F2B113/image-size/medium?v=v2&amp;amp;px=400" role="button" title="allmo_0-1623841088221.png" alt="allmo_0-1623841088221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code generation (Monitor&amp;amp;Tune) is working, but when i connect to the board and press the start button i cannot see anything in the scope. Do I make any mistakes?&lt;/P&gt;&lt;P&gt;Why has the block output Data Rx the size unit8,&amp;nbsp;although i request a size of 2 bytes?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293221#M6176</guid>
      <dc:creator>allmo</dc:creator>
      <dc:date>2021-06-16T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293269#M6179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187850"&gt;@allmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The size of Data Rx is an array of uint8 elements, so you'll need to define the size of your data storage variable that will be used to store the Data Rx:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_1-1623847185541.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147218iE543E94F3C683135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxa11767_1-1623847185541.png" alt="nxa11767_1-1623847185541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for external mode, have you set the correct COM port in the Model Hardware Settings?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_0-1623847028125.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147217iB52E0B2244C0A2A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxa11767_0-1623847028125.png" alt="nxa11767_0-1623847028125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you get any errors in the Diagnostics view?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Alexandra&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 12:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293269#M6179</guid>
      <dc:creator>nxa11767</dc:creator>
      <dc:date>2021-06-16T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293291#M6180</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/123994"&gt;@nxa11767&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i changed the block parameters in the data store memory.&lt;/P&gt;&lt;P&gt;I have checked the com port too. It is the same one as in the device manager of windows.&lt;/P&gt;&lt;P&gt;As stop time of the model i choosed "inf", I hope that's right.&lt;/P&gt;&lt;P&gt;When i try to connect with the board after i pressed the restart button, I got the following error message (see file error_simulink.txt)&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;&lt;DIV class="messagePane"&gt;&lt;DIV class="aMainClass"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="messagePane"&gt;&lt;DIV class="aMainClass aMainClassHover"&gt;&lt;DIV class="aFooterClass aMsgTextOuterClass"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293291#M6180</guid>
      <dc:creator>allmo</dc:creator>
      <dc:date>2021-06-16T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293838#M6184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187850"&gt;@allmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try decreasing the&amp;nbsp; Duration&amp;nbsp; in Signal&amp;amp;Trigger options, in &lt;SPAN&gt;External Mode Control Panel&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_1-1623912007782.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147300iDBBDA987AA6AAFC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxa11767_1-1623912007782.png" alt="nxa11767_1-1623912007782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_0-1623911912946.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147299iB21E242925E88633/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxa11767_0-1623911912946.png" alt="nxa11767_0-1623911912946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The toolbox provides also an example for external mode (evkmimxrt1170_extmode.slx), you can try to run that one also.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Alexandra&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 06:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1293838#M6184</guid>
      <dc:creator>nxa11767</dc:creator>
      <dc:date>2021-06-17T06:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1294429#M6187</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/123994"&gt;@nxa11767&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have decreased the duration setting in the signal and trigger options, but i got a new error message&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_Simulink.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147406iEDF0FD1B96B5BE73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error_Simulink.png" alt="Error_Simulink.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As i proposed i testet the external mode example of the toolbox. After I had set the correct settings, the example ran.&lt;/P&gt;&lt;P&gt;Then I inserted the i2c-blocks to the exampel model to test, whether the error depend on the model setting. After I have compiled the model with the inserted blocks, i unfortunaly&amp;nbsp; got the same errros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bes regards,&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 05:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1294429#M6187</guid>
      <dc:creator>allmo</dc:creator>
      <dc:date>2021-06-18T05:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1296723#M6204</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187850"&gt;@allmo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a few suggestions for external mode working.&lt;/P&gt;
&lt;P&gt;If your Simulink model is saved as .mdl, try to save it as .slx and then run external mode again.&lt;/P&gt;
&lt;P&gt;Also, I recommend to set a specific fixed step-size in the solver configuration for your model.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="config_params.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147742i8870A21F946D172C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="config_params.JPG" alt="config_params.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Make sure that the COM port associated with your board is not open or used by another process. Otherwise, your board cannot send data to Simulink.&lt;/P&gt;
&lt;P&gt;Also, make sure that the sensor you are using is sending data to your board. The communication between Simulink and the board might be cut off because the board might be stuck in an I2C call function waiting for the data from the slave device.&lt;/P&gt;
&lt;P&gt;If your are trying just to visualize the data your are receiving, you can use FreeMaster tool which is supported by our toolbox. The FreeMaster blocks can be found in the Utility Blocks from NXP Model-Based Design Toolbox for i.MX RT MCUs in Simulink Library Browser.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 08:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1296723#M6204</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2021-06-23T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1297454#M6207</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your advice,&amp;nbsp;I will implement your suggestions!&lt;/P&gt;&lt;P&gt;Yesterday morning I copied the exampel for GPIO-Polling, saved it as .slx-fiel and inserted the I2C-block. I configured the model for the external, downloaded it and it it worked the first time. As thought about changes between the first test model and this model, I detected that i remove all necessary pins in the mcuxpresso settings,&amp;nbsp;except for uart and lpi2c pins.&lt;/P&gt;&lt;P&gt;Could this have caused the problems?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Moritz&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1297454#M6207</guid>
      <dc:creator>allmo</dc:creator>
      <dc:date>2021-06-24T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Start with MX RT1170 EVK and I2C</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1297479#M6209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187850"&gt;@allmo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The removal of the pins for peripherals that you are not using in your application should not influence the external mode working.&lt;/P&gt;
&lt;P&gt;Another suggestion is to set the LPIC2 peripheral in a non-blocking mode, like Transfer or Interrupts. You can do that by opening the MCUXpresso ConfigTools file associated with your model, save the file, click the Update button in the LPI2C block and go back to Simulink to try again. This way you will prevent the board to wait for the data from the slave device.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Getting-Start-with-MX-RT1170-EVK-and-I2C/m-p/1297479#M6209</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2021-06-24T07:59:19Z</dc:date>
    </item>
  </channel>
</rss>

