<?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: iMXRT: Error with External Mode in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1896578#M9272</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189467"&gt;@Sam_ECU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking to the error you are encountering, my first question would be how did you generate the code to use external mode feature? Did you press first &lt;STRONG&gt;Build, Deploy &amp;amp; Start&lt;/STRONG&gt; button and then trying to connect from external mode menu? If this is the case, you have to know that the normal build does not contain all the External Mode over XCP Serial protocol communication stack that has to run on the board.&lt;/P&gt;
&lt;P&gt;To run External Mode, after you configured the XCP Serial communication interface setting from Target hardware resources menu &amp;lt;- Hardware Implementation tab, you have to press the &lt;STRONG&gt;Monitor &amp;amp; Tune&lt;/STRONG&gt; button from &lt;STRONG&gt;RUN ON HARDWARE&lt;/STRONG&gt; menu in the Simulink model, as in the picture below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_1-1719826109964.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286405i136B4A56E6C6BDA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_1-1719826109964.png" alt="stefancinipeanu_1-1719826109964.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you press this button, all the XCP Serial communication interface sources will be added, compiled for your specific hardware and automatically downloaded on your 1062-EVK. Then, Simulink will automatically connect to the board and will display the logged signals in the Simulink scope in real-time.&lt;/P&gt;
&lt;P&gt;Let me know if this works!&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 09:49:33 GMT</pubDate>
    <dc:creator>stefancinipeanu</dc:creator>
    <dc:date>2024-07-01T09:49:33Z</dc:date>
    <item>
      <title>iMXRT: Error with External Mode</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1879253#M9160</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to connect to the iMXRT1062 over MCU-Link to run in external mode in Matlab with XCP Serial Interface.&amp;nbsp; I get the same issue on a custom board and the 1060-EVK over OpenSDA with the External Mode example.&lt;/P&gt;&lt;P&gt;Essentially I'm trying to connect to a running target. The aim is to calibrate using external mode over serial after flashing the device with MCU-Boot-Utility.&lt;/P&gt;&lt;P&gt;I set the device up as so (Com11 for MCU-Link):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_ECU_0-1717262194278.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282014i05CE98492F994019/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_ECU_0-1717262194278.png" alt="Sam_ECU_0-1717262194278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I build the code and flash it to the board (over SDA with EVK and with MCU-Boot-Utility for the custom board).&lt;/P&gt;&lt;P&gt;When using the "Connect" function in Simulink it generates the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_ECU_1-1717262502881.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282015iF478F8A8E4933D07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_ECU_1-1717262502881.png" alt="Sam_ECU_1-1717262502881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I fix the issue?&lt;/P&gt;&lt;P&gt;How is it recommended to tune a custom board with MBDT code in Simulink over XCP?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 17:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1879253#M9160</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2024-06-01T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Error with External Mode</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1896578#M9272</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189467"&gt;@Sam_ECU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking to the error you are encountering, my first question would be how did you generate the code to use external mode feature? Did you press first &lt;STRONG&gt;Build, Deploy &amp;amp; Start&lt;/STRONG&gt; button and then trying to connect from external mode menu? If this is the case, you have to know that the normal build does not contain all the External Mode over XCP Serial protocol communication stack that has to run on the board.&lt;/P&gt;
&lt;P&gt;To run External Mode, after you configured the XCP Serial communication interface setting from Target hardware resources menu &amp;lt;- Hardware Implementation tab, you have to press the &lt;STRONG&gt;Monitor &amp;amp; Tune&lt;/STRONG&gt; button from &lt;STRONG&gt;RUN ON HARDWARE&lt;/STRONG&gt; menu in the Simulink model, as in the picture below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_1-1719826109964.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286405i136B4A56E6C6BDA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_1-1719826109964.png" alt="stefancinipeanu_1-1719826109964.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you press this button, all the XCP Serial communication interface sources will be added, compiled for your specific hardware and automatically downloaded on your 1062-EVK. Then, Simulink will automatically connect to the board and will display the logged signals in the Simulink scope in real-time.&lt;/P&gt;
&lt;P&gt;Let me know if this works!&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1896578#M9272</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2024-07-01T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Error with External Mode</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1942421#M9405</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;BR /&gt;&lt;BR /&gt;I get further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;action: EXT_CONNECT&lt;BR /&gt;Connecting to the target...&lt;BR /&gt;Model status: 2&lt;BR /&gt;External mode structural checksum received from target: [0x47d3b38b, 0x33b32d2b, 0xadc1f171, 0x4ec70850].&lt;BR /&gt;Target integer only code: 0&lt;BR /&gt;Enabling XCP Synchronous Data Transfer...&lt;BR /&gt;External Mode Open Protocol Connect command failed&lt;BR /&gt;Caused by:&lt;BR /&gt;ERR packet with error code 'ERR_MEMORY_OVERFLOW' received in response to XCP command 'ALLOC_DAQ'. Target memory available for allocation to internal data structures is not sufficient. Set 'ExtModeAutomaticAllocSize' to 'on' or manually increase the target memory that is available for internal data structures. For details, see 'Customize XCP Software'.&lt;BR /&gt;Component:Simulink | Category:Model error&lt;BR /&gt;&lt;BR /&gt;Embedded Coder is dumping all of the calibration and XCP information into SRAM_DTC:&lt;BR /&gt;&lt;BR /&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt;BOARD_FLASH: 472864 B 8 MB 5.64%&lt;BR /&gt;SRAM_DTC: 65572 B 128 KB 50.03%&lt;BR /&gt;SRAM_ITC: 0 GB 128 KB 0.00%&lt;BR /&gt;SRAM_OC: 0 GB 768 KB 0.00%&lt;BR /&gt;BOARD_SDRAM: 0 GB 30 MB 0.00%&lt;BR /&gt;NCACHE_REGION: 0 GB 2 MB&lt;BR /&gt;&lt;BR /&gt;What would be the recommended RAM settings for an XCP / Calibration Project from NXP?&lt;BR /&gt;&lt;BR /&gt;Is it just a matter of updating the linker scripts to increase the size of SRAM_DTC with text editor or MCUXpresso:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_ECU_0-1724860689329.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295864iC59CCD04C328C3ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_ECU_0-1724860689329.png" alt="Sam_ECU_0-1724860689329.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="Sam_ECU_2-1724860752408.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295866i482B175D93909C28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_ECU_2-1724860752408.png" alt="Sam_ECU_2-1724860752408.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1942421#M9405</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2024-08-28T15:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Error with External Mode</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1981732#M9709</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt; and anyone else interested.&lt;BR /&gt;&lt;BR /&gt;Here's where I got too:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-XCP-on-Serial-quot-ERR-MEMORY-OVERFLOW-received-in/m-p/1970022/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufE0yMVhaRVM2M01DWE5SfDE5NzAwMjJ8U1VCU0NSSVBUSU9OU3xoSw#M9641" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-XCP-on-Serial-quot-ERR-MEMORY-OVERFLOW-received-in/m-p/1970022/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufE0yMVhaRVM2M01DWE5SfDE5NzAwMjJ8U1VCU0NSSVBUSU9OU3xoSw#M9641&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 06:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Error-with-External-Mode/m-p/1981732#M9709</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2024-10-25T06:10:05Z</dc:date>
    </item>
  </channel>
</rss>

