Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no 0x00000.bin and 0x10000.bin files #7

Open
hallard opened this issue Jul 26, 2015 · 0 comments
Open

no 0x00000.bin and 0x10000.bin files #7

hallard opened this issue Jul 26, 2015 · 0 comments

Comments

@hallard
Copy link

hallard commented Jul 26, 2015

Hi there,

I installed the toolchain according this wiki https://github.com/esp8266/esp8266-wiki/wiki/Toolchain and after some tweaks (copying libhal.a and libc.a to ./lib) succeded to compile the project
Unfortunatly I can't flash anything since it looks like I do not have the 0x00000.bin and 0x10000.bin files ?

here the end of the make output (seems all is okay)

xtensa-lx106-elf-ar ru .output/eagle/debug/lib/spiffs.a .output/eagle/debug/obj/spiffs.o .output/eagle/debug/obj/spiffs_cache.o .output/eagle/debug/obj/spiffs_check.o .output/eagle/debug/obj/spiffs_gc.o .output/eagle/debug/obj/spiffs_hydrogen.o .output/eagle/debug/obj/spiffs_nucleus.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/spiffs.a
make[2]: Leaving directory `/opt/Espressif/ESP8266_SDK/esp-ginx/app/spiffs'
xtensa-lx106-elf-gcc  -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lmain -ljson -lsmartconfig -lssl user/.output/eagle/debug/lib/libuser.a http/.output/eagle/debug/lib/http.a dns/.output/eagle/debug/lib/dns.a driver/.output/eagle/debug/lib/libdriver.a lwip/.output/eagle/debug/lib/liblwip.a json/.output/eagle/debug/lib/libjson.a platform/.output/eagle/debug/lib/libplatform.a libc/.output/eagle/debug/lib/liblibc.a mqtt/.output/eagle/debug/lib/mqtt.a smart/.output/eagle/debug/lib/smart.a util/.output/eagle/debug/lib/util.a sensor/.output/eagle/debug/lib/sensors.a spiffs/.output/eagle/debug/lib/spiffs.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
xtensa-lx106-elf-objcopy -O binary .output/eagle/debug/image/eagle.app.v6.out .output/eagle/debug/bin/eagle.app.v6.bin
make[1]: Leaving directory `/opt/Espressif/ESP8266_SDK/esp-ginx/app'
challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$

here the only bin file I have :

challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$ find . -name *.bin
./app/.output/eagle/debug/bin/eagle.app.v6.bin
./bin/blank.bin
./bin/esp_init_data_default.bin
challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$ ls -al ./app/.output/eagle/debug/bin/*.bin ./bin/*.bin
-rwxr-xr-x 1 challard challard 2559880 Jul 26 23:14 ./app/.output/eagle/debug/bin/eagle.app.v6.bin
-rw-r--r-- 1 challard challard    4096 Jul 26 22:05 ./bin/blank.bin
-rw-r--r-- 1 challard challard     128 Jul 26 22:05 ./bin/esp_init_data_default.bin
challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$

of course trying a make flash bring me a file not found

challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$ make flash
../Makefile:95: warning: overriding commands for target `clean'
Makefile:167: warning: ignoring old commands for target `clean'
../Makefile:99: warning: overriding commands for target `clobber'
Makefile:171: warning: ignoring old commands for target `clobber'
../Makefile:103: warning: overriding commands for target `.subdirs'
Makefile:185: warning: ignoring old commands for target `.subdirs'
make -C ./app flash
make[1]: Entering directory `/opt/Espressif/ESP8266_SDK/esp-ginx/app'
../../Makefile:95: warning: overriding commands for target `clean'
../Makefile:167: warning: ignoring old commands for target `clean'
../../Makefile:99: warning: overriding commands for target `clobber'
../Makefile:171: warning: ignoring old commands for target `clobber'
../../Makefile:103: warning: overriding commands for target `.subdirs'
../Makefile:185: warning: ignoring old commands for target `.subdirs'
../../Makefile:158: warning: overriding commands for target `.output/eagle/debug/image/eagle.app.v6.out'
../Makefile:240: warning: ignoring old commands for target `.output/eagle/debug/image/eagle.app.v6.out'
../tools/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../bin/0x00000.bin 0x10000 ../bin/0x10000.bin
Connecting...
Traceback (most recent call last):
  File "../tools/esptool.py", line 556, in <module>
    image = file(filename, 'rb').read()
IOError: [Errno 2] No such file or directory: '../bin/0x00000.bin'
make[1]: *** [flash] Error 1
make[1]: Leaving directory `/opt/Espressif/ESP8266_SDK/esp-ginx/app'
make: *** [flash] Error 2
challard@DiskStation:/opt/Espressif/ESP8266_SDK/esp-ginx$

I think the 2nd file should be the file eagle.app.v6.bin but not sure of the 1st one to flash at 0x00000 ?

Any ideas ? Thank's for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant