<?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 MATLAB Toolchain to program MPC5744P Custom Hardware in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-Toolchain-to-program-MPC5744P-Custom-Hardware/m-p/1022025#M4145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P&gt;I am designing a custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hardware&lt;/SPAN&gt;(MPC5744P) compliance with MATLAB Target Hardware. I bought a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdevelopment-boards%2Fautomotive-development-platforms%2Fmpc57xx-mcu-platforms%2Fdevelopment-board-for-mpc5744p%3ADEVKIT-MPC5744P" rel="nofollow" style="color: #3d9ce7; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;DEVKIT-MPC5744P&lt;/A&gt;. Thanks to On-Board Debugger(OpenSDA), I am able to directly program DEVKIT-MPC5744P from MATLAB Simulink via the "Build Model" button. As I understood, in this scenario, programming toolchain is;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;MATLAB Simulink Model -&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; On-Board Debugger(MK20DX128VFM5) -&amp;gt; UART -&amp;gt; Target MCU(MPC5744P).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I don't want to add the Onboard debugger to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;my custom hardware.&lt;/P&gt;&lt;P&gt;I programmed indirectly MPC5744P with this toolchain;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;MATLAB Simulink Model -&amp;gt; Generated Source Code -&amp;gt; S32 Studio -&amp;gt;&amp;nbsp;&lt;SPAN&gt;P/E micro Multilink Universal -&amp;gt; JTAG -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Target MCU(MPC5744P)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I can not program&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directly MPC5744P via MATLAB Simulink without&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;On-Board Debugger&lt;/SPAN&gt;. I want to establish a toolchain like below scenarios to programming my custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hardware;&lt;/P&gt;&lt;OL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN&gt;MATLAB Simulink Model&lt;/SPAN&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external On-Board Debugger(MK20DX128VFM5) -&amp;gt; UART/JTAG -&amp;gt; Target MCU(MPC5744P)&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Does NXP have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;an&amp;nbsp;external debugger with OpenSDA compliant DEVKIT-MPC5744P rev.E Schematic?&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;If we make our own On-Board Debugger(MK20DX128VFM5) for using externally, How can I find OpenSDA software(compliant DEVKIT-MPC5744P rev.E Schematic) to program own On-Board Debugger? Could you please share it?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN&gt;MATLAB Simulink Model&lt;/SPAN&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external COTS Programmer/Debugger(P/E Micro etc.) -&amp;gt; JTAG -&amp;gt; Target MCU(MPC5744P)&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Which COTS programmer/debugger is compliant with OpenSDA to program directly over MATLAB Simulink to my custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hardware&amp;nbsp;&lt;/SPAN&gt;via UART or JTAG?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;devkit-mpc5744p‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;custom hardware‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;opensda‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;rappid boot‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;from uart‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;jtag‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;usb-uart‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2020 14:29:39 GMT</pubDate>
    <dc:creator>scbicer</dc:creator>
    <dc:date>2020-02-13T14:29:39Z</dc:date>
    <item>
      <title>MATLAB Toolchain to program MPC5744P Custom Hardware</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-Toolchain-to-program-MPC5744P-Custom-Hardware/m-p/1022025#M4145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P&gt;I am designing a custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hardware&lt;/SPAN&gt;(MPC5744P) compliance with MATLAB Target Hardware. I bought a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdevelopment-boards%2Fautomotive-development-platforms%2Fmpc57xx-mcu-platforms%2Fdevelopment-board-for-mpc5744p%3ADEVKIT-MPC5744P" rel="nofollow" style="color: #3d9ce7; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;DEVKIT-MPC5744P&lt;/A&gt;. Thanks to On-Board Debugger(OpenSDA), I am able to directly program DEVKIT-MPC5744P from MATLAB Simulink via the "Build Model" button. As I understood, in this scenario, programming toolchain is;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;MATLAB Simulink Model -&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; On-Board Debugger(MK20DX128VFM5) -&amp;gt; UART -&amp;gt; Target MCU(MPC5744P).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I don't want to add the Onboard debugger to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;my custom hardware.&lt;/P&gt;&lt;P&gt;I programmed indirectly MPC5744P with this toolchain;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;MATLAB Simulink Model -&amp;gt; Generated Source Code -&amp;gt; S32 Studio -&amp;gt;&amp;nbsp;&lt;SPAN&gt;P/E micro Multilink Universal -&amp;gt; JTAG -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Target MCU(MPC5744P)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I can not program&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directly MPC5744P via MATLAB Simulink without&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;On-Board Debugger&lt;/SPAN&gt;. I want to establish a toolchain like below scenarios to programming my custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hardware;&lt;/P&gt;&lt;OL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN&gt;MATLAB Simulink Model&lt;/SPAN&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external On-Board Debugger(MK20DX128VFM5) -&amp;gt; UART/JTAG -&amp;gt; Target MCU(MPC5744P)&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Does NXP have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;an&amp;nbsp;external debugger with OpenSDA compliant DEVKIT-MPC5744P rev.E Schematic?&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;If we make our own On-Board Debugger(MK20DX128VFM5) for using externally, How can I find OpenSDA software(compliant DEVKIT-MPC5744P rev.E Schematic) to program own On-Board Debugger? Could you please share it?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN&gt;MATLAB Simulink Model&lt;/SPAN&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external COTS Programmer/Debugger(P/E Micro etc.) -&amp;gt; JTAG -&amp;gt; Target MCU(MPC5744P)&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Which COTS programmer/debugger is compliant with OpenSDA to program directly over MATLAB Simulink to my custom&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hardware&amp;nbsp;&lt;/SPAN&gt;via UART or JTAG?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;devkit-mpc5744p‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;custom hardware‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;opensda‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;rappid boot‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;from uart‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;jtag‌&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;usb-uart‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-Toolchain-to-program-MPC5744P-Custom-Hardware/m-p/1022025#M4145</guid>
      <dc:creator>scbicer</dc:creator>
      <dc:date>2020-02-13T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: MATLAB Toolchain to program MPC5744P Custom Hardware</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-Toolchain-to-program-MPC5744P-Custom-Hardware/m-p/1022026#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/scbicer@gmail.com"&gt;scbicer@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in using MBDT on your custom board!&lt;/P&gt;&lt;P&gt;First of all, the RappID Bootloader is a serial/UART bootloader that must be flashed with the S32DS using JTAG (for DevBoard the onboard OpenSDA is used as JTAG). Once the RappID Bootloader is flashed on the board, Matlab&amp;nbsp; sends the mot via Serial directly to the board.&lt;/P&gt;&lt;P&gt;For the scenarios you mentioned:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;MATLAB Simulink Model&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external On-Board Debugger(MK20DX128VFM5) -&amp;gt; UART/JTAG -&amp;gt; Target MCU(MPC5744P)&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.2em 0px;"&gt;Does NXP have&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;an&amp;nbsp;external debugger with OpenSDA compliant DEVKIT-MPC5744P rev.E Schematic?&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.2em 0px;"&gt;If we make our own On-Board Debugger(MK20DX128VFM5) for using externally, How can I find OpenSDA software(compliant DEVKIT-MPC5744P rev.E Schematic) to program own On-Board Debugger? Could you please share it?&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The role of the RAppID bootloader is to flash the .mot generated file on the board using UART/CAN. It is just a bootloader, not an actually debugger. On the Rev E board, when the RappID bootloader is used to deploy the mot on target, OpenSDA acts as an usual USB2Serial. So basically if you leave the&amp;nbsp; PB2/PB3 pins outside on your custom baord (please check the schematic before make the board) you can program the mcu using RappID Bootloader using any USB2Serial device. The same is applied for CAN too but there are other pins there.&lt;/P&gt;&lt;P&gt;The firmware from the OpenSDA can be found here&amp;nbsp;&lt;A class="link-titled" href="http://www.pemicro.com/opensda/" title="http://www.pemicro.com/opensda/"&gt;PEmicro | Experts in Embedded tools for Flash Programming and Development&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;MATLAB Simulink Model&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;-&amp;gt; RAppID BootLoader Tool -&amp;gt; USB -&amp;gt; external COTS Programmer/Debugger(P/E Micro etc.) -&amp;gt; JTAG -&amp;gt; Target MCU(MPC5744P)&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.2em 0px;"&gt;Which COTS programmer/debugger is compliant with OpenSDA to program directly over MATLAB Simulink to my custom&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;hardware&amp;nbsp;&lt;/SPAN&gt;via UART or JTAG?&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The mcu can be flashed without RappID Bootloader, by downloading directly the elf/mot file generated via JTAG from S32DS. Unfortunately, you can not download the generated code directly from Matlab via JTAG. But you can get the .elf from the generated code file and flash it using S32DS via JTAG. Any probe from the PEMicro can program the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 08:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-Toolchain-to-program-MPC5744P-Custom-Hardware/m-p/1022026#M4146</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-02-14T08:25:41Z</dc:date>
    </item>
  </channel>
</rss>

