<?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: Modify a abs file before programming uP in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150847#M8121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, many thanks for your help&lt;/P&gt;&lt;P&gt;I was referring to this tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sourceforge.net/projects/srecord/%FEFF" rel="nofollow" target="_self"&gt;http://sourceforge.net/projects/srecord/﻿&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I like much better your file since it explain hoiw to manipulate the different things&lt;/P&gt;&lt;P&gt;I will read it carefully&lt;/P&gt;&lt;P&gt;Many many thanks, have a nice day&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 18:50:49 GMT</pubDate>
    <dc:creator>Giox79</dc:creator>
    <dc:date>2011-07-19T18:50:49Z</dc:date>
    <item>
      <title>Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150842#M8116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I have a problem I think quite simple but that I don't know how to solve.&lt;/P&gt;&lt;P&gt;I would like to perform the following task:&lt;/P&gt;&lt;P&gt;starting from a .abs file generated for the platform HCS08QE, I would like to modify 2 different item at well know offset, using a C/C++/C# source code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The items should be defined during the production phase (something like a serial number, but a bit different, it's too long to explain :-D).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I would like to know if there is some SW library by which, invoking a command similar to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set -o memoryOffset -v valueToBeSet -i absFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will allow me to generate the desired file.&lt;/P&gt;&lt;P&gt;I think this is a quite common task, I know that there is some bin programmer able to write a serial number in bin image, but I need to set different kind of item, so a SW is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there someone able to provide me some link/idea about this topic? I think that quite anyone that used uP faced similar problem, but I'm quite a newbye&lt;/P&gt;&lt;P&gt;Thanks Gio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2011 20:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150842#M8116</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2011-07-17T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150843#M8117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The abs files are using the ELF format, the same format as used in Linux. So there are many tools out which work on elf files, and libraries supporting to read and write them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Executable_and_Linkable_Format" rel="nofollow" target="_self"&gt;http://en.wikipedia.org/wiki/Executable_and_Linkable_Format﻿&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As alternative, often such tasks are done using the target content only, so not modifying the ELF file, which contains a more&lt;/P&gt;&lt;P&gt;information (and structure to parse).&lt;/P&gt;&lt;P&gt;The target content is contained in the SRecord files (*.s1,*.s2, *.sx) or even a binary image file (which can be produced with the burner.exe tool).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 01:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150843#M8117</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2011-07-18T01:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150844#M8118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be surprised just how few ELF tools are out there.&lt;/P&gt;&lt;P&gt;The only ones I know of that&amp;nbsp;are&amp;nbsp;actually supported are readelf&amp;nbsp;and elfedit&amp;nbsp;from&amp;nbsp;Code&amp;nbsp;Sourcery. But elfedit only lets you change things like the version. While ELF is a standard, different build systems handle things, well, differently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;elfedit [‘--input-mach=’machine][‘--input-type=’type]‘--output-mach=’machine‘--output-type=’type[‘-v’|‘--version’][‘-h’|‘--help’]elffile...elfedit updates the ELF header of ELF files which have the matching ELF machine and file types. The options control how and which fields in the ELF header should be updated.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as compilerguru says, you really need to edit the S19 file, which is oddly named project_name.abs.s19. This is what gets burned.&lt;/P&gt;&lt;P&gt;I don't know of any utilities that would do that, but you can find out the &amp;nbsp;S19 format details and write one, as it is all ASCII.&lt;/P&gt;&lt;P&gt;The format has a check sum for each "record", so you have to actaully read it in, modify it, and re-write it with a new check sum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:53:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150844#M8118</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2020-10-29T08:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150845#M8119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;Well, since you told me the right file to watch at is the s19 tool, wht do you think about srecord tool from sourceforge?&lt;/P&gt;&lt;P&gt;Is it a good tool?&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Gio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150845#M8119</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2011-07-18T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150846#M8120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure which tool you refer to.&amp;nbsp; At Sourceforge I could find only a converter from S19 to binary format,&amp;nbsp;but I don't think this is what you need.&amp;nbsp; I see your problem as requiring a means to manipulate and add lines within an ASCII text&amp;nbsp;file (the S19 file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The memory start address of each line within the file is defined, and each line will typically contain data for a maximum of 16 or 32 bytes of data.&amp;nbsp; The address ranges&amp;nbsp;for your special&amp;nbsp;data would simply&amp;nbsp;be omitted when the project is compiled and linked.&amp;nbsp; It is then a matter of appending further lines to the S19&amp;nbsp;file, for the additional data.&amp;nbsp; The final line with the S9 record would need to be repositioned, to&amp;nbsp;follow the new data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached file should explain the S-record format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 22:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150846#M8120</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-07-18T22:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a abs file before programming uP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150847#M8121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, many thanks for your help&lt;/P&gt;&lt;P&gt;I was referring to this tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sourceforge.net/projects/srecord/%FEFF" rel="nofollow" target="_self"&gt;http://sourceforge.net/projects/srecord/﻿&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I like much better your file since it explain hoiw to manipulate the different things&lt;/P&gt;&lt;P&gt;I will read it carefully&lt;/P&gt;&lt;P&gt;Many many thanks, have a nice day&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Modify-a-abs-file-before-programming-uP/m-p/150847#M8121</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2011-07-19T18:50:49Z</dc:date>
    </item>
  </channel>
</rss>

