This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2538: Generation of .bin file from .out using ccs

Part Number: CC2538

Tool/software: Code Composer Studio

Hello,

I am generating .bin file from .out file.

.out file size if 252 KB and .bin file size id 512KB.

as per my knowladge .out contains debug data and all so .out should have more size.

I am using CCS 7.3.0.00019.

Please share your views and let me know if i am doing something wronge .

Regards,

Prerak

  • Your situation is probably similar to the one discussed in this forum thread.

    Thank and regards,

    -George

  • Hi George,

    " In your case, I'm pretty sure there are ranges of memory that are simply unused.  These ranges of memory are often called holes.  The .bin format is very simple, and has no way to represent a hole, except with a string of 0 bytes the same size as the hole.  For this reason, you cannot use the size of the .bin file as a way to understand how much memory your system uses. "

    Yes... even i believe this kind of stuff happens with my .bin file. Is there any way to remove the holes from .bin file?

    Please do needful.

    Regards,

    Prerak

  • Prerak Patel said:
    Is there any way to remove the holes from .bin file?

    No.

    The best method is to avoid the holes altogether.  When linking, arrange for all the initialized sections to be adjacent in memory.

    Thanks and regards,

    -George