<?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 How to get the machine code file from a target board with an un-protected or un-secured Flash MCU? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420460#M11277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a target board with a MC9S12XEP100 chip. The flash of the MCU chip is un-protected and un-secured. I want to get the machine code file or assembly file (*.abs, or *.s19). What should I do?&lt;/P&gt;&lt;P&gt;PS: I have succesfully connected the target board using the BDM (P&amp;amp;E USB Multilink Inerface) via the software - hiwave.exe, and see the contents of the Flash memory, as well as the Assemble codes&amp;nbsp; in the Windows of "Memory" and "Assemble" of the hiwave.exe software, respectively. But I don't know how to save them as a *.abs file or a *.s19 file.&amp;nbsp; The copy command cannot be used in the Windows "Memory" or "Assemble" of the hiwave.exe software&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 03:50:18 GMT</pubDate>
    <dc:creator>kunxu</dc:creator>
    <dc:date>2015-05-12T03:50:18Z</dc:date>
    <item>
      <title>How to get the machine code file from a target board with an un-protected or un-secured Flash MCU?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420460#M11277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a target board with a MC9S12XEP100 chip. The flash of the MCU chip is un-protected and un-secured. I want to get the machine code file or assembly file (*.abs, or *.s19). What should I do?&lt;/P&gt;&lt;P&gt;PS: I have succesfully connected the target board using the BDM (P&amp;amp;E USB Multilink Inerface) via the software - hiwave.exe, and see the contents of the Flash memory, as well as the Assemble codes&amp;nbsp; in the Windows of "Memory" and "Assemble" of the hiwave.exe software, respectively. But I don't know how to save them as a *.abs file or a *.s19 file.&amp;nbsp; The copy command cannot be used in the Windows "Memory" or "Assemble" of the hiwave.exe software&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 03:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420460#M11277</guid>
      <dc:creator>kunxu</dc:creator>
      <dc:date>2015-05-12T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the machine code file from a target board with an un-protected or un-secured Flash MCU?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420461#M11278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;The code programmed into memory of a chip is an optimized binary code but not originally written assembly. The chip never records your original assembly code. So it is not possible to get your original assembly code from chip.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We can use the SAVE command to save a specified block of memory to a specified file in Freescale S-record format. Then we can reload the memory block later using the load S-record (SREC) command.&lt;SPAN style="font-size: 10pt;"&gt; The &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SAVE command is used in debugger command window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;E.g.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;in&amp;gt;SAVE 0x1000..0x2000 DUMP.S19 ;A&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;This way we can read binary opcode from flash to .s19 file. It appends the memory range 0x1000..0x2000 to the DUMP.S19 file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;We can use decoder.exe tool to decode .s19 and see the code in assembly-pseudo, but it is not real assembly format. This attribute depends on .s19 and .lib itself but not decode tool&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 08:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420461#M11278</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2015-05-13T08:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the machine code file from a target board with an un-protected or un-secured Flash MCU?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420462#M11279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the nice reply. I can have a good sleep tonight. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-get-the-machine-code-file-from-a-target-board-with-an-un/m-p/420462#M11279</guid>
      <dc:creator>kunxu</dc:creator>
      <dc:date>2015-05-13T09:23:55Z</dc:date>
    </item>
  </channel>
</rss>

