Large ELF file when building example. Expected?

gamename
Posts: 32
Joined: Fri Dec 08, 2023 11:33 pm

Large ELF file when building example. Expected?

Postby gamename » Fri Dec 08, 2023 11:53 pm

Hi,

I'm trying to build and flash the http_request example (https://github.com/espressif/esp-idf/tr ... tp_request)

Everything builds correctly as far as I can tell, but the ELF file is >8MB. That seems really large. In fact its too large to load onto my esp32.

Is that the expected result, or am I doing something wrong?

TIA,
-T

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Large ELF file when building example. Expected?

Postby ESP_Sprite » Sat Dec 09, 2023 4:24 am

The ELF file contains all the results from the compilation process - not only the code but also debug symbols, filenames and lots of other stuff that is not needed for execution. You want to look at the generated .bin file - that is what actually gets flashed to the ESP.

gamename
Posts: 32
Joined: Fri Dec 08, 2023 11:33 pm

Re: Large ELF file when building example. Expected?

Postby gamename » Sat Dec 09, 2023 10:21 am

Doh! Thanks. :)

Who is online

Users browsing this forum: Majestic-12 [Bot], warwound and 101 guests