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.

I am Getting large bin file ?

HI,

I    Compiled my code by using this version  CCS6.0.1.00040_win32, compilation is done without errors.but the Problem is the .bin file Size.

1)In debugging session, my coding is working.

2)generally i am expecting the 3kb of bin file but here i am getting the 512mb bin file..i do not understand why its getting?

3)already added the post built configurations still same issue is there..

 OS    : windows 7 ,64bit

CCS : CCS6.0.1.00040_win32

Device :TM4C12306HPMI

debugger :JTAG

  • it is quite common for the .out file to be large as it contains all of the symbols necessary for debugging. If this is the .bin file that you can create with obj2bin then that is odd.

    However 512MB is huge even for an .out file for a TM4C device. Does is zip up to a smaller size? If so could you zip it and attach it to this thread and we can take a look and see what is going on. If you click on the "use rich formatting" link it will allow you to attach a file.

    John
  • workspace10.rar

    HI SIR,

     Here I  was attached my code snippet, Please verify this code and check it.

    my implementation is :

    1.i was implementing the boot serial code .initially this code have the  assembly language and different .cmd file.

    2.for my application,i selected the TM4C12306HPM  then automatically generate the  .cmd file.after that add the main function and compiled.

    3.here I  am not getting any errors but the bin file size is 512 MB.

    In my attached file any issues is there,please give the solution for boot serial  bin file generation attachment,then i can add my monitor code into this application..

    thanking you,

    Regards

    venkat. E

  • venkat ediga said:
    2)generally i am expecting the 3kb of bin file but here i am getting the 512mb bin file..i do not understand why its getting?

    The bin file contains only initialized sections, and if there are gaps in addresses between the initialized sections the size of the bin file includes the gaps between the initialized sections.

    Running the sectti tool from the CG XML tools on the boot_serial.out program from your project reports the following:

    ************************************************************
    REPORT FOR FILE: workspace10/boot_serial/Debug/boot_serial.out
    ************************************************************
                    Name : Size (dec)  Size (hex)  Type   Load Addr   Run Addr
    -------------------- : ----------  ----------  ----   ----------  ----------
                .intvecs :        620  0x0000026c  DATA   0x00000000  0x00000000
                   .text :       2202  0x0000089a  CODE   0x0000026c  0x0000026c
                  .const :          4  0x00000004  DATA   0x00000b06  0x00000b06
                   .data :         20  0x00000014  DATA   0x2000106c  0x2000106c
                    .bss :        105  0x00000069  UDATA  0x20001000  0x20001000
                  .stack :       4096  0x00001000  UDATA  0x20000000  0x20000000
    
    ------------------------------------------------------------
    Totals by section type
    ------------------------------------------------------------
      Uninitialized Data :       4201  0x00001069
        Initialized Data :        644  0x00000284
                    Code :       2202  0x0000089a
    

    The initialized sections are those with a type of DATA or CODE. The initialized sections cover both flash at load address 0x00000000 and RAM at load address 0x20000000. This explains why the bin file size is 512M.

    In the CCS project properties under CCS Build -> ARM Linker -> Advanced Options -> Runtime Environment the Initialization model is set to "Link using RAM autoinitialization model (--ram_model -cr)", which is causing the problem. Changing the Initialization model to "Link using ROM autoinitialization model (--rom_model, -c)" should cause the bin file size to be small.

  • Hi Sir,

           Now  I am getting the expected bin file and its working fine.

    Thanks  a lot  Sir & Thanks for your fast response..

    Regards 

    venkat .E