Protocoll of .bin file

Comments

5 comments

  • Avatar
    Jacques Fortier

    Henry,

    It isn't really a protocol. It's just the raw data that would be written into flash, starting at the lowest load address in your linker placement xml file. I believe if there are gaps in your placement those gaps will be zero-filled in the .bin file.

    0
    Comment actions Permalink
  • Avatar
    Henry

    Jacques,

    do you mean I just could start loading one byte after the other to flash starting at address 0x0000 0000?

    What about code that belongs to external flash? I would have expected a starting address and block length. No?

     

    Regards,

    Henry

     

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    No, it is the just raw data from lowest address to the highest address in your program, there is no address information. If you have gaps between memory segments, padding bytes will be added to get from one memory segment to the next.

    0
    Comment actions Permalink
  • Avatar
    Henry

    Thank you very much, Jacques and Jon.

    Regards,

    Henry

    0
    Comment actions Permalink
  • Avatar
    Steve

    My MSP430 boot loader loads  binary from 0x1200 - the start of flash - upwards. I would like to know if  I can generate a binary file which starts at this address rather than 0? At the moment I make an s-record file then hexbin2 it to get the truncated image.

    0
    Comment actions Permalink

Please sign in to leave a comment.