Insane Size of .elf Output

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insane Size of .elf Output

692 Views
quangkaelannguy
Contributor I

Hi ,

 

Im working with Kinetis SDK 1.2 and the FRDMK64F Board. I could successfully build the hello sample and flashed onto the board before. Everything were fine.

But since yesterday when I try to build eth_to_serial sample located inside middleware folder.

 

The output .elf gets really huge.

 

arm-none-eabi-size --format=berkeley "eth_to_serial.elf"

   text       data        bss        dec        hex    filename

  81620       1304       4992      87916      1576c    eth_to_serial.elf

Finished building: eth_to_serial.siz

 

I can't figure out what I have changed to cause this. Now everything I build are about 50MB or more, even the hello sample I built before.

Did I accidentally delete some flags of the makefile?

 

I tried to strip the elf File and flashed onto the board, but it seems to be wrong. The Board return fail.txt "RESERVED BITS".

I also try to build the project fresh.

 

Any idea that can help me out?

 

Thanks.

 

Labels (1)
0 Kudos
5 Replies

513 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quang,

Which IDE do you use ? and which version.

Could you screenshot the error when flash the .elf file onto board.thank !

BR

Alice

0 Kudos

513 Views
quangkaelannguy
Contributor I

Hi Alice,

Thanks for your answer.

Im using the Freescale KDS 3.0.0 IDE

Screenshot - 06112015 - 10_51_02 AM.png

0 Kudos

513 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quang,

When you build the example of "eth_to_serial" , please refer to the "readme.txt" here :..\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\eth_to_serial\_readme.txt  .

And have you build the MQX lib ?

BR

Alice

0 Kudos

513 Views
quangkaelannguy
Contributor I

Hi Alice,

Yes, I built the sample as the readme told me to do. I actually could build it properly and flashed on board, which means all the libs were build correctly.

Then I added "objcopy" to the build steps under project properties so that I get a .bin file to flash. I also wanted to changed some function to use dhcp instead of staticip. After those changes, I tried to build and get that huge size of .elf. I cant remember what else I've done to cause this.

Screenshot - 06152015 - 10_03_28 AM.png

Screenshot - 06152015 - 10_37_44 AM.png

Kind Regards

Quang

0 Kudos

513 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Quang,

at the beginning was the elf file not that big? I build eth_to_serial with default settings and is also huge.

Carlos

0 Kudos