<?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: Re-building sources from MC9S08SH4 .s19 file in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334806#M21055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Kris,&lt;/P&gt;&lt;P&gt;If you've only the Srecord file we don't have solution to generate the source code.&lt;/P&gt;&lt;P&gt;However with the decoder tool you can have the assembly instruction of your application.&lt;/P&gt;&lt;P&gt;To that you must launch the decoder.exe tool in the \prog folder.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;Under Decoder ¦ Option Settings, you must define the processor and select the options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D: Decode DWARF Sections &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -E: Decode ELF sections&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The decoder will generates a file containing all assembly instruction for your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.S19 is optimized code by compiler, the compiler already optimizes the original source C code then generates .S19&amp;nbsp;&amp;nbsp; That’s to say, each of them doesn’t contain any the original source code info any more, but only includes optimized code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can only be able to decode it and see the object code in assembly-pseudo (not real assembly) format.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;This attribute is depended on .s19 and .lib itself but not decode tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;====================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;this answer is for you. if it helps. please click on "Correct Answer " button. thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;ZhangJun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 06:17:37 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2014-09-04T06:17:37Z</dc:date>
    <item>
      <title>Re-building sources from MC9S08SH4 .s19 file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334805#M21054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on a simple project with the MC9S08SH4.&amp;nbsp; I recently had a harddrive crash on my code repository, and all of the backups do not include all of the data; lesson learned.&amp;nbsp; However, I can pull the code from my IC in an .s19 format using usbdm.&amp;nbsp; I can also disassemble it using CodeWarrior tools.&amp;nbsp; However, its in an absolute format, and is not readily usable.&amp;nbsp; Is there an easy way to transcribe the .s19 back in to a ready-to-use assembly source?&amp;nbsp; I spent a lot of time playing with both the Classic CW and Eclipse based CW and was not able to find a way.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 04:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334805#M21054</guid>
      <dc:creator>krisba</dc:creator>
      <dc:date>2014-09-03T04:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re-building sources from MC9S08SH4 .s19 file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334806#M21055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Kris,&lt;/P&gt;&lt;P&gt;If you've only the Srecord file we don't have solution to generate the source code.&lt;/P&gt;&lt;P&gt;However with the decoder tool you can have the assembly instruction of your application.&lt;/P&gt;&lt;P&gt;To that you must launch the decoder.exe tool in the \prog folder.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;Under Decoder ¦ Option Settings, you must define the processor and select the options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -D: Decode DWARF Sections &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -E: Decode ELF sections&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The decoder will generates a file containing all assembly instruction for your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.S19 is optimized code by compiler, the compiler already optimizes the original source C code then generates .S19&amp;nbsp;&amp;nbsp; That’s to say, each of them doesn’t contain any the original source code info any more, but only includes optimized code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can only be able to decode it and see the object code in assembly-pseudo (not real assembly) format.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;This attribute is depended on .s19 and .lib itself but not decode tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;====================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;this answer is for you. if it helps. please click on "Correct Answer " button. thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;ZhangJun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334806#M21055</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-09-04T06:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re-building sources from MC9S08SH4 .s19 file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334807#M21056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; The original source was already in assembly format, there was no C involved.&amp;nbsp; However, like I noted, and you did as well, when using the decoder, its in a format that is difficult to use, with everything being absolute.&amp;nbsp; I don't need any labels to make sense, but having a way to automatically generate source, with labels would save me a lot of time.&amp;nbsp; I assume that this is not possible based on your answer, and I guess I just have a lot of work to transcribe the sources.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334807#M21056</guid>
      <dc:creator>krisba</dc:creator>
      <dc:date>2014-09-04T06:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re-building sources from MC9S08SH4 .s19 file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334808#M21057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, because the s19 file you retrieved from flash is a kind of optimized code. with this, we can only convert it to assembly-pseudo. but not a real original project assembly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;====================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;this answer is for you. if it helps. please click on "Correct Answer " button. thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;ZhangJun&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Re-building-sources-from-MC9S08SH4-s19-file/m-p/334808#M21057</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-09-04T06:50:06Z</dc:date>
    </item>
  </channel>
</rss>

