<?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 S32K142 - MC24 Flashing error through S32DS and Matlab issue in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419183#M7047</link>
    <description>&lt;P&gt;Good morning,&lt;BR /&gt;I'm a thesist student and I bought this hardware:&lt;BR /&gt;- Board: NXP MCSXTE2BK142&lt;BR /&gt;- UART adapter: FDTI UMFT230XB-01&lt;BR /&gt;- J-Link SEGGER adapter: NXP LPC-Link 2&lt;BR /&gt;The goal is to program the board through a simulink file for FOC motor control drive but i'm starting with a simple red led (D1) turning on.&lt;BR /&gt;I first connected both JTAG and UART cables and I uploaded the rbf file in the board with S32DS v.2.2 clicking on the flash button, setting as in picture "1.jpg" then I clicked on "Flash" and, after J-Link V.7.62 terms of use accepting, I obtain that the debugging will freeze at "starting target cpu . . ." in "2.txt".&lt;BR /&gt;After some time I tried to disconnect the board and then errors appear.&lt;BR /&gt;However, I then reconnected JUST the UART cable to USB and I tried to build the Simulink file Verify_SW_HW_Setup.slx (here zipped) with the set-up showed in “3.jpg” but when I build it, the errors contained in "4.txt" appears.&lt;BR /&gt;Can someone help me?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Dario&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 15:14:21 GMT</pubDate>
    <dc:creator>DarioZanni</dc:creator>
    <dc:date>2022-02-24T15:14:21Z</dc:date>
    <item>
      <title>S32K142 - MC24 Flashing error through S32DS and Matlab issue</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419183#M7047</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;I'm a thesist student and I bought this hardware:&lt;BR /&gt;- Board: NXP MCSXTE2BK142&lt;BR /&gt;- UART adapter: FDTI UMFT230XB-01&lt;BR /&gt;- J-Link SEGGER adapter: NXP LPC-Link 2&lt;BR /&gt;The goal is to program the board through a simulink file for FOC motor control drive but i'm starting with a simple red led (D1) turning on.&lt;BR /&gt;I first connected both JTAG and UART cables and I uploaded the rbf file in the board with S32DS v.2.2 clicking on the flash button, setting as in picture "1.jpg" then I clicked on "Flash" and, after J-Link V.7.62 terms of use accepting, I obtain that the debugging will freeze at "starting target cpu . . ." in "2.txt".&lt;BR /&gt;After some time I tried to disconnect the board and then errors appear.&lt;BR /&gt;However, I then reconnected JUST the UART cable to USB and I tried to build the Simulink file Verify_SW_HW_Setup.slx (here zipped) with the set-up showed in “3.jpg” but when I build it, the errors contained in "4.txt" appears.&lt;BR /&gt;Can someone help me?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Dario&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 15:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419183#M7047</guid>
      <dc:creator>DarioZanni</dc:creator>
      <dc:date>2022-02-24T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 - MC24 Flashing error through S32DS and Matlab issue</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419786#M7052</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197291"&gt;@DarioZanni&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Forst of all I would recommend you to have a look at the following thread&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MCSXTE2BK142/m-p/1078629" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MCSXTE2BK142/m-p/1078629&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the other customer was using an S32K142 to flash the board, but it is not necessary in your case.&lt;/P&gt;
&lt;P&gt;Anyway, there are multiple issues you have reported:&lt;/P&gt;
&lt;P&gt;1. Step 1 is to flash the rbf file. It should work with the J-Link as well, please check on the S32DS community for similar posts as well.&lt;/P&gt;
&lt;P&gt;2. For flashing the code, if step 1 is successful, you shall also check the below option. When the MCU boots up, it enters the bootloader flashed la step1, and waits around 5 seconds to receive a new flash file. Otherwise, it will start executing the one existing. IF you check the below checkbox, it will ask you to manually reset the board,&amp;nbsp; so you will have time to synchronize this process, by resetting the board and pressing the ok button.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1645790683077.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171804iDF614FA2728002DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1645790683077.png" alt="mariuslucianand_0-1645790683077.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Building process. According to the attached log, somehow you're using the lcc64 compiler, which is not something you can use for cross-compiling the generated code to run on our target.&lt;/P&gt;
&lt;PRE class="bp-text bp-text-plain hljs bp-is-scrollable" tabindex="0"&gt;&lt;CODE class="bp-text-code txt"&gt;C:/PROGRA~1/MATLAB/R2020b/sys/lcc64/lcc64/bin/lcc64&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; I've seen in your config block that you have selected the GCC compiler. Have you changed the environment variable to switch it to lcc?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:33:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419786#M7052</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2022-02-25T12:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 - MC24 Flashing error through S32DS and Matlab issue</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419871#M7055</link>
      <description>&lt;P&gt;Hi and thank you so much for fast reply.&lt;/P&gt;&lt;P&gt;For what concern the compiler, I just followed passages as in this post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-1-Environment-Setup/td-p/734725" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Module-1-Environment-Setup/td-p/734725&lt;/A&gt;&amp;nbsp;but this time I also installed&amp;nbsp;MinGW-w64 C/C++ Compiler in Matlab (am I wrong? Do I have to uninstall it?). I do want to use GCC compiler but I don't know how (i thought it was included in mbd toolbox since i have the folder called "gcc-6.3-arm32-eabi"). I've seen that in my simulink configuration parameters NOW there is the compiler as in "compiler.jpg" and before there was llc64 as you correctly noticed.&lt;/P&gt;&lt;P&gt;For what concern the rbf bootloader file flashing, I saw the thread you linked but and i followed it to firstly&amp;nbsp;flash the .rbf file but the first strange thing was that the process stopped at "Starting target CPU..."&lt;BR /&gt;Now I will do the steps again following you and I will attach photos. This time I&amp;nbsp;will try to use S32 DS for ARM2018.R1&lt;/P&gt;&lt;P&gt;1) Flashing .rbf file as in "flash.pdf" and obtain the following console messages on S32DS "console.txt" (another way could be to flash with J-Link flash lite and I've done but the following errors appears in the same way)&lt;BR /&gt;2) Disconnected the board&lt;BR /&gt;3) Connect just the UART cable&lt;/P&gt;&lt;P&gt;4) Opened .SLX file but this time I checked the box as you suggested to me. The problem is that even if it could stop before to reset (and it never ask to reset), I don't know how to reset since i don't have any button (board photo in "board.jpg")&lt;/P&gt;&lt;P&gt;5) Build and now (after changed the compiler) the error seems different, as it is in "codebuild.txt" (attached in next post because of the max 5 files to attach)&lt;/P&gt;&lt;P&gt;Please help me, i don't really know how to proceed..&lt;/P&gt;&lt;P&gt;Have a nice day, Dario&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 15:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419871#M7055</guid>
      <dc:creator>DarioZanni</dc:creator>
      <dc:date>2022-02-25T15:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 - MC24 Flashing error through S32DS and Matlab issue</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419874#M7056</link>
      <description>&lt;P&gt;.slx file&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 15:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1419874#M7056</guid>
      <dc:creator>DarioZanni</dc:creator>
      <dc:date>2022-02-25T15:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 - MC24 Flashing error through S32DS and Matlab issue</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1421053#M7058</link>
      <description>&lt;P&gt;I solved the problem by restarting the board when requested (after BAM) by short-circuit the pin 10 of the JTAG connector (reset pin) with the GND and pressing "ok" in the restart request within 5 sec.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 08:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K142-MC24-Flashing-error-through-S32DS-and-Matlab-issue/m-p/1421053#M7058</guid>
      <dc:creator>DarioZanni</dc:creator>
      <dc:date>2022-03-01T08:13:12Z</dc:date>
    </item>
  </channel>
</rss>

