1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

Convert Hex from Binary Format

Discussion in 'Embedded' started by mklye, Feb 17, 2006.

  1. mklye

    mklye Guest

    hi All,

    I'm using Code Composer for my development on MSP 430.

    any one can tell me
    1. how can i convert the binary output file to hex code?
    2. Where can i check for the code space i use after i compiler.

    Appreciated that if some one can help me up.

    MK LYE
    mklye, Feb 17, 2006
    1. Advertisements

  2. mklye

    cbarn24050 Guest

    You should be able to set the linker to output intel hex. Look at the
    list files or map files to see how your program uses memory.
    cbarn24050, Feb 17, 2006
    1. Advertisements

  3. Look on http://www.sourceforge.net for a package called srecord.
    If you get a binary output file, then the size of the file should be
    the code space used.

    Anton Erasmus
    Anton Erasmus, Feb 17, 2006
  4. mklye

    Tim Wescott Guest

    I haven't used the MSP 430 tool chain, but both of these things are what
    I consider essential features; I don't think TI would be able to
    withstand the customer pressure if they thought they could get away
    without them.

    1. RTFM. I would be surprised if there isn't either a linker option to
    get hex directly, or a tool that converts the binary to hex.

    2. You want a "map" file. Most tool chains that I have used produce
    this as (your file name).map, but some need to be told that it is
    desired. Once again, RTFM.


    Tim Wescott
    Wescott Design Services

    Posting from Google? See http://cfaj.freeshell.org/google/
    Tim Wescott, Feb 17, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.