Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service


Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept



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.




    Comments

  • 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:

      elf2srec.exe
      S00600004844521B
      S31900004000000000000000000000000000000869B7010000007D
      S3190000401400000000000000000000000002000000030200008B
      S319000040280000000000087CC8030F271005080000003FB25695

      elf2s19.exe
      S11340006151A0660B201792A96C9E4A4CB6131AF4
      S11340100607B2024A464CE6C000C25507A4A4CB28
      S11340206111B870002C8086919FE5F87C25507A48

      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:
    http://www.pemicro.com/blog/index.cfm?post_id=35

    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:
    https://www.sourceware.org/binutils/docs/binutils/objcopy.html


    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