Bin file too large

Hi,

         I created a  bin file for a project containing code for ADC by selecting Project properties -> C++ build -> settings -> GNU ARM Cross Create Flash image -> General ->output file format -> Raw binary. The created bin file was of 1 Gb size as shown in the image attached. Is there any way to reduce that size? 

            

Parents
  • With a bin, the linker is going to have to put in 0x00 or 0xff to put the sections where you placed them. Look at the .map file to see where they are going.  You may have a large code or ram section you've specified.  Reduce the sizes of each section if you can will also help. 

    Did you ask the linker to fill unused flash with a pattern using =fill? That could do it as well.

    Post your .ld also.

Reply
  • With a bin, the linker is going to have to put in 0x00 or 0xff to put the sections where you placed them. Look at the .map file to see where they are going.  You may have a large code or ram section you've specified.  Reduce the sizes of each section if you can will also help. 

    Did you ask the linker to fill unused flash with a pattern using =fill? That could do it as well.

    Post your .ld also.

Children