<?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: How to create bin/hex/s19 file using the MBD tool for S32 in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673005#M448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;powerpc-eabivle-objcopy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to automate it put it in the _make_rtw_hook.m callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2014/08/03/converting-s19-files-into-binary-files-with-gnu-objcopy/" title="https://mcuoneclipse.com/2014/08/03/converting-s19-files-into-binary-files-with-gnu-objcopy/"&gt;Converting S19 Files into Binary Files with GNU objcopy | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sourceware.org/binutils/docs/binutils/objcopy.html" title="https://sourceware.org/binutils/docs/binutils/objcopy.html"&gt;objcopy - GNU Binary Utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sourceware.org/binutils/docs/binutils/Target-Selection.html#Target-Selection" title="https://sourceware.org/binutils/docs/binutils/Target-Selection.html#Target-Selection"&gt;Target Selection - GNU Binary Utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 04:18:28 GMT</pubDate>
    <dc:creator>jfrey</dc:creator>
    <dc:date>2017-06-02T04:18:28Z</dc:date>
    <item>
      <title>How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673004#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to create bin/hex/s19 file using the MBD tool for S32.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 03:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673004#M447</guid>
      <dc:creator>释然111</dc:creator>
      <dc:date>2017-06-02T03:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673005#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;powerpc-eabivle-objcopy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to automate it put it in the _make_rtw_hook.m callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2014/08/03/converting-s19-files-into-binary-files-with-gnu-objcopy/" title="https://mcuoneclipse.com/2014/08/03/converting-s19-files-into-binary-files-with-gnu-objcopy/"&gt;Converting S19 Files into Binary Files with GNU objcopy | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sourceware.org/binutils/docs/binutils/objcopy.html" title="https://sourceware.org/binutils/docs/binutils/objcopy.html"&gt;objcopy - GNU Binary Utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sourceware.org/binutils/docs/binutils/Target-Selection.html#Target-Selection" title="https://sourceware.org/binutils/docs/binutils/Target-Selection.html#Target-Selection"&gt;Target Selection - GNU Binary Utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 04:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673005#M448</guid>
      <dc:creator>jfrey</dc:creator>
      <dc:date>2017-06-02T04:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673006#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;用MBD工具箱生成的elf文件，然后下载到板子上。现在我想知道怎么设置，能够生成bin/hex/s19文件~~~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 07:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673006#M449</guid>
      <dc:creator>释然111</dc:creator>
      <dc:date>2017-06-02T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673007#M450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The easiest way to achieve your goal is to modify the default settings in the&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;mbd_s32k14.tmf&lt;/STRONG&gt; &lt;/SPAN&gt;file within&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;c:\MBDToolbox\mbdtbx_S32K\mbdtbx_s32k14\mbdtbx_s32k14\&lt;/STRONG&gt;&lt;/SPAN&gt; folder&lt;/P&gt;&lt;P&gt;This file is responsible for generation the makefile used to build the model.&lt;/P&gt;&lt;P&gt;Inside the file, there is already a default example about how to generate a SREC from the elf. Therefore is a simple as changing the extension and the type of file you want to obtain: bin/hex/s19 etc since the toolchain is defined already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1: search for any occurrences of ".mot" keyword&lt;/P&gt;&lt;P&gt;Step2. replace with the ".extension_you_want_to_obtain"&lt;/P&gt;&lt;P&gt;Step3: find the invocation of ELF_TOOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should look like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(MODEL).mot: $(MODEL).elf&lt;BR /&gt; @echo Generating S-record...&lt;BR /&gt;ifeq ($(TARGET_COMPILER), GCC)&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(ELF_TOOL) -O srec $(MODEL).elf $(MODEL).mot&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;endif&lt;BR /&gt;ifeq ($(TARGET_COMPILER), IAR)&lt;BR /&gt; $(ELF_TOOL) $(MODEL).elf $(MODEL).mot --srec --silent&lt;BR /&gt;endif&lt;BR /&gt;ifeq ($(TARGET_COMPILER), GreenHills Multi)&lt;BR /&gt; $(GSREC_TOOL) -auto -o $(MODEL).mot $(MODEL).elf&lt;BR /&gt;endif&lt;BR /&gt; @echo Created S-record: $(MODEL).mot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And replace it with something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(ELF_TOOL) -O binary $(MODEL).elf $(MODEL).bin&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19691i5D9AD405375251A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 05:50:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673007#M450</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-03T05:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673008#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;只需要改如图的两行是把。只需要改后缀？中间的srec需要改吗？如果我想改成S19文件，应该怎么改？&lt;span class="lia-inline-image-display-wrapper" image-alt="$3}_GF[A0]3%_0E~I_CN_H5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21384iD79E9AB50AFDB66D/image-size/large?v=v2&amp;amp;px=999" role="button" title="$3&amp;amp;#125;_GF[A0]3%_0E~I_CN_H5.png" alt="$3&amp;amp;#125;_GF[A0]3%_0E~I_CN_H5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673008#M451</guid>
      <dc:creator>释然111</dc:creator>
      <dc:date>2017-06-08T10:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673009#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're making efforts to understand Chinese as much as we can with Google Translate but sometimes that fails. In this case using the translate function i can't understand what are you asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please rephrase in English.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673009#M452</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-08T10:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673010#M453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry,my English is very bad.Can you&amp;nbsp;&lt;SPAN style="color: #666666; font-family: Tahoma;"&gt;help me to creat .s19 file in IAR .thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673010#M453</guid>
      <dc:creator>释然111</dc:creator>
      <dc:date>2017-06-08T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create bin/hex/s19 file using the MBD tool for S32</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673011#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on which compiler you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using GCC you need to replace line 450&lt;/P&gt;&lt;P&gt;$(ELF_TOOL) -O srec $(MODEL).elf $(MODEL).mot&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;$(ELF_TOOL) -O binary $(MODEL).elf $(MODEL).bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For GCC you have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;srec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save as Motorola S-records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) -O srec $(MODEL).elf $(MODEL).s19&lt;BR /&gt;binary&amp;nbsp; Save as raw binary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) -O binary $(MODEL).elf $(MODEL).bin&lt;BR /&gt;ihex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save as Intel hex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) -O ihex $(MODEL).elf $(MODEL).hex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using IAR you replace line 453&lt;/P&gt;&lt;P&gt;$(ELF_TOOL) $(MODEL).elf $(MODEL).mot --srec --silent&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;$(ELF_TOOL) $(MODEL).elf $(MODEL).bin --bin --silent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For IAR you have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--srec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save as Motorola S-records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) $(MODEL).elf $(MODEL).s19 --srec --silent&lt;BR /&gt;--ihex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save as Intel hex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) $(MODEL).elf $(MODEL).hex --ihex --silent&lt;BR /&gt;--bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save as raw binary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(ELF_TOOL) $(MODEL).elf $(MODEL).bin --bin --silent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ATTENTION: Lines 450 and 453 should start with a tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you are using the old version of toolbox, MCToolbox for S32K, you can get for free the new version, MBDToolbox for S32K from &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/automotive-software-and-tools/motor-control-development-solutions/motor-control-development-toolbox:MC_TOOLBOX"&gt;NXP Motor Control Toolbox&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 11:15:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-the-MBD-tool-for-S32/m-p/673011#M454</guid>
      <dc:creator>paulvlase</dc:creator>
      <dc:date>2017-06-08T11:15:17Z</dc:date>
    </item>
  </channel>
</rss>

