Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
Is there a newer version of elf2srec utility that resolves a byte count issue?
Rodney K. Aug 14, 2014 at 02:22 PM (14:22 hours)
Staff: Takao Y.

  • We are using elf2srec.exe (Version 1.00 06MAR2001) on an older product using the MPC564 micro. The last line of the output file does not match the byte count and content: S705000000FA. The latest tool sets used on our project now flag this as a build fault and will not produce a programmable file. Previous tool sets would bypass this check. Is there a new version of the elf2srec.exe (> 2001) that we could try and see if this issue is fixed?

    Note: I've downloaded the latest elf2s19 utility, but cannot get the same output file. Version of CodeWarrior being used is V6.5, Build 20.


  • Greetings,

    I sent you an email with a newer build of the ELF2S19 utility. See if this makes a difference.

    Takao Yamada

    • Thanks Takao, but I already had tried this version of elf2s19.exe and it gives a different output from what was done by elf2srec.exe. Please see a snipit from each below:



      Note: The record type on elf2s19 seems to be incorrect as '1' 8-bit whereas elf2srec has the correct '3' 32-bit type. Is there a way to specify the record type with elf2s19? Otherwise, is there a newer version of elf2srec.exe (> Version 1.00) that I could try?

  • Greetings,

    Read this blog post that we have about OBJCOPY:

    You can use it to convert your ELF file to S19 format. You want the parameter "-O srec" to convert.

    Let me know if this method works for you.

    Takao Yamada

    • I downloaded PKGPPCNEXUSSTARTER and was able to run powerpc-eabispe-objcopy.exe, but have been struggling to setup the options. I can get a basic conversion from elf to srec, but cannot force to S3 as stated in the help. I also cannot set the start address: option "-b set-start 4000"

      Here is my basic command that outputs a file, but is an S2 type, not S3:
      powerpc-eabispe-objcopy -I elf32-powerpc -O srec CL14.elf NEW14.mot -b srec-forceS3

      Any help is appreciated.

  • Greetings,

    Try putting double "--" before srec-forceS3. Also you can learn more here:

    Takao Yamada

  • Greetings,

    Were you able to get the conversion right?

    Takao Yamada

    • I believe so. I have made the updates and sent off for verification. Thanks for the help.

Add comment

   Want to comment? Please login or create a new PEMicro account.

© 2018 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement