<?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: Simulink - Model-based-design-Toolbox - build and flash questions in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-Model-based-design-Toolbox-build-and-flash-questions/m-p/1308375#M6303</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187961"&gt;@Raphael2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Let's answer your questions one by one.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;1. Do I always overwrite the file above by this step? And could this lead to any problems?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The code should be generated and build every time when you press the build button. The code regeneration cannot lead to any problems.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;2. Can I reuse the generated code in the file and flash it directly to the board with Matlab without opening the project in Simulink again? If yes how do I do it?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The short answer here is yes. You have to copy-paste the .mot file from inside the generated folder to the S32K144 mounded drive. In my case is EVB-S32K144 (D)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1626346568929.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149908iC7BE486EE4420F6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1626346568929.png" alt="mariuslucianand_0-1626346568929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;3. Can I flash the board with the generated file but with S32 Design Studio for ARM&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Absolutely. If you only have to flash the generated code, then inside the folder you will find a .elf file. In S32DS for ARM you have to go to the Flash window, Select a project for S32K144, then Browse for the .elf file and press Flash.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_1-1626346772092.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149909i57AC42EC8B0E4984/image-size/large?v=v2&amp;amp;px=999" role="button" title="mariuslucianand_1-1626346772092.png" alt="mariuslucianand_1-1626346772092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 11:00:14 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2021-07-15T11:00:14Z</dc:date>
    <item>
      <title>Simulink - Model-based-design-Toolbox - build and flash questions</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-Model-based-design-Toolbox-build-and-flash-questions/m-p/1308356#M6302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a general question about flashing a microcontroller with simulink - matlab.&lt;/P&gt;&lt;P&gt;Until now I only tried example projects and to do so I always used the Build button of the Embedded Coder. (I work with the s32k144 EVB)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Praemas_0-1626343224046.png" style="width: 80px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149890iF9DD8DAFF34A46BA/image-dimensions/80x85?v=v2" width="80" height="85" role="button" title="Praemas_0-1626343224046.png" alt="Praemas_0-1626343224046.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This generates the code and creates a file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Praemas_1-1626343336867.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149892iEAF3E183847B5098/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Praemas_1-1626343336867.png" alt="Praemas_1-1626343336867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I wanna flash the Board again with this example I always pressed the Build button again.&lt;/P&gt;&lt;P&gt;1. Do I always overwrite the file above by this step? And could this lead to any problems?&lt;/P&gt;&lt;P&gt;2. Can I reuse the generated code in the file and flash it directly to the board with Matlab without opening the project in Simulink again? If yes how do I do it?&lt;/P&gt;&lt;P&gt;3. Can I flash the board with the generated file but with S32 Design Studio for ARM&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 10:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-Model-based-design-Toolbox-build-and-flash-questions/m-p/1308356#M6302</guid>
      <dc:creator>Raphael2</dc:creator>
      <dc:date>2021-07-15T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink - Model-based-design-Toolbox - build and flash questions</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-Model-based-design-Toolbox-build-and-flash-questions/m-p/1308375#M6303</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187961"&gt;@Raphael2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Let's answer your questions one by one.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;1. Do I always overwrite the file above by this step? And could this lead to any problems?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The code should be generated and build every time when you press the build button. The code regeneration cannot lead to any problems.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;2. Can I reuse the generated code in the file and flash it directly to the board with Matlab without opening the project in Simulink again? If yes how do I do it?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The short answer here is yes. You have to copy-paste the .mot file from inside the generated folder to the S32K144 mounded drive. In my case is EVB-S32K144 (D)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1626346568929.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149908iC7BE486EE4420F6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1626346568929.png" alt="mariuslucianand_0-1626346568929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;3. Can I flash the board with the generated file but with S32 Design Studio for ARM&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Absolutely. If you only have to flash the generated code, then inside the folder you will find a .elf file. In S32DS for ARM you have to go to the Flash window, Select a project for S32K144, then Browse for the .elf file and press Flash.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_1-1626346772092.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/149909i57AC42EC8B0E4984/image-size/large?v=v2&amp;amp;px=999" role="button" title="mariuslucianand_1-1626346772092.png" alt="mariuslucianand_1-1626346772092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 11:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-Model-based-design-Toolbox-build-and-flash-questions/m-p/1308375#M6303</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-07-15T11:00:14Z</dc:date>
    </item>
  </channel>
</rss>

