pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 623 forks source link

Missing COMPILE 'gcc' export #354

Open hannes-angst opened 5 years ago

hannes-angst commented 5 years ago
$ make clean all
...
Run gen_appbin.py
sh: xt-nm: command not found
no entry point!!
mv: rename eagle.app.flash.bin to firmware/eagle.flash.bin: No such file or directory
make: *** [build/app.out] Error 1

When looking at gen_appbin.py we see the following code:

151      if os.getenv('COMPILE')=='gcc' :
152        cmd = 'xtensa-lx106-elf-nm -g ' + elf_file + ' > eagle.app.sym'
153    else :
154        cmd = 'xt-nm -g ' + elf_file + ' > eagle.app.sym'

So we need to export COMPILE='gcc' to use the proper tool.

$ make clean all
... 
Run gen_appbin.py
No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in folder firmware
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x10000
Done

Another way is to remove line 151, 153 and 154 to not bother at all.