esp-open-sdk icon indicating copy to clipboard operation
esp-open-sdk copied to clipboard

Missing COMPILE 'gcc' export

Open hannes-angst opened this issue 5 years ago • 0 comments

$ 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.

hannes-angst avatar Dec 16 '18 11:12 hannes-angst