Closed kostasoft closed 7 years ago
What can be done?
$ ./gen_misc.sh based on gen_misc.sh version 20150911 SDK_PATH: /c/Espressif/ESP8266_RTOS_SDK BIN_PATH: /c/Espressif/ESP8266_RTOS_SDK/bin Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue: y Please follow below steps(1-5) to generate specific bin(s): STEP 1: use boot_v1.2+ by default boot mode: new STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin) enter (0/1/2, default 0): 0 ignore boot generate bin: eagle.flash.bin+eagle.irom0text.bin STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz) enter (0/1/2/3, default 2): 2 spi speed: 40 MHz STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT) enter (0/1/2/3, default 0): 0 spi mode: QIO STEP 5: choose spi size and map 0= 512KB( 256KB+ 256KB) 2=1024KB( 512KB+ 512KB) 3=2048KB( 512KB+ 512KB) 4=4096KB( 512KB+ 512KB) 5=2048KB(1024KB+1024KB) 6=4096KB(1024KB+1024KB) enter (0/2/3/4/5/6, default 0): 2 spi size: 1024KB spi ota map: 512KB + 512KB start... 12 май 2017 г. 17:01:55 C:/Git/mingw64/bin/make -C user clean; C:/Git/mingw64/bin/make -C driver clean; make[1]: Entering directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/user' rm -f -r .output/eagle/debug make[1]: Leaving directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/user' make[1]: Entering directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/driver' rm -f -r .output/eagle/debug make[1]: Leaving directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/driver' rm -f -r .output/eagle/debug make[1]: Entering directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/user' DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -fno-jump-tables -DICACHE_FLASH -I include -I ./ -I ../include -I C:/Espressif/ESP8266_RTOS_SDK/include/freertos -I C:/Espressif/ESP8266_RTOS_SDK/include -I C:/Espressif/ESP8266_RTOS_SDK/extra_include -I C:/Espressif/ESP8266_RTOS_SDK/driver_lib/include -I C:/Espressif/ESP8266_RTOS_SDK/include/espressif -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv4 -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv6 -I C:/Espressif/ESP8266_RTOS_SDK/include/nopoll -I C:/Espressif/ESP8266_RTOS_SDK/include/spiffs -I C:/Espressif/ESP8266_RTOS_SDK/include/ssl -I C:/Espressif/ESP8266_RTOS_SDK/include/json -I C:/Espressif/ESP8266_RTOS_SDK/include/openssl user_main.c xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -fno-jump-tables -DICACHE_FLASH -I include -I ./ -I ../include -I C:/Espressif/ESP8266_RTOS_SDK/include/freertos -I C:/Espressif/ESP8266_RTOS_SDK/include -I C:/Espressif/ESP8266_RTOS_SDK/extra_include -I C:/Espressif/ESP8266_RTOS_SDK/driver_lib/include -I C:/Espressif/ESP8266_RTOS_SDK/include/espressif -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv4 -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv6 -I C:/Espressif/ESP8266_RTOS_SDK/include/nopoll -I C:/Espressif/ESP8266_RTOS_SDK/include/spiffs -I C:/Espressif/ESP8266_RTOS_SDK/include/ssl -I C:/Espressif/ESP8266_RTOS_SDK/include/json -I C:/Espressif/ESP8266_RTOS_SDK/include/openssl -o .output/eagle/debug/obj/user_main.o -c user_main.c xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libuser.a make[1]: Leaving directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/user' make[1]: Entering directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/driver' DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -fno-jump-tables -DICACHE_FLASH -I include -I ../include -I C:/Espressif/ESP8266_RTOS_SDK/include/freertos -I C:/Espressif/ESP8266_RTOS_SDK/include -I C:/Espressif/ESP8266_RTOS_SDK/extra_include -I C:/Espressif/ESP8266_RTOS_SDK/driver_lib/include -I C:/Espressif/ESP8266_RTOS_SDK/include/espressif -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv4 -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv6 -I C:/Espressif/ESP8266_RTOS_SDK/include/nopoll -I C:/Espressif/ESP8266_RTOS_SDK/include/spiffs -I C:/Espressif/ESP8266_RTOS_SDK/include/ssl -I C:/Espressif/ESP8266_RTOS_SDK/include/json -I C:/Espressif/ESP8266_RTOS_SDK/include/openssl gpio.c xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -fno-jump-tables -DICACHE_FLASH -I include -I ../include -I C:/Espressif/ESP8266_RTOS_SDK/include/freertos -I C:/Espressif/ESP8266_RTOS_SDK/include -I C:/Espressif/ESP8266_RTOS_SDK/extra_include -I C:/Espressif/ESP8266_RTOS_SDK/driver_lib/include -I C:/Espressif/ESP8266_RTOS_SDK/include/espressif -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv4 -I C:/Espressif/ESP8266_RTOS_SDK/include/lwip/ipv6 -I C:/Espressif/ESP8266_RTOS_SDK/include/nopoll -I C:/Espressif/ESP8266_RTOS_SDK/include/spiffs -I C:/Espressif/ESP8266_RTOS_SDK/include/ssl -I C:/Espressif/ESP8266_RTOS_SDK/include/json -I C:/Espressif/ESP8266_RTOS_SDK/include/openssl -o .output/eagle/debug/obj/gpio.o -c gpio.c xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libdriver.a .output/eagle/debug/obj/gpio.o xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libdriver.a make[1]: Leaving directory 'C:/Espressif/ESP8266_RTOS_SDK/ESP8266-HomeKit-Demo/Demo/driver' xtensa-lx106-elf-gcc -LC:/Espressif/ESP8266_RTOS_SDK/lib -Wl,--gc-sections -nostdlib -TC:/Espressif/ESP8266_RTOS_SDK/ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lcirom -lcrypto -lespconn -lespnow -lfreertos -lgcc -lhal -ljson -llwip -lmain -lmesh -lmirom -lnet80211 -lnopoll -lphy -lpp -lpwm -lsmartconfig -lspiffs -lssl -lwpa -lwps -lhkc user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out c:/sysgcc/esp8266/bin/../lib/gcc/xtensa-lx106-elf/5.2.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find -lhal collect2.exe: error: ld returned 1 exit status make: *** [C:/Espressif/ESP8266_RTOS_SDK/Makefile:388: .output/eagle/debug/image/eagle.app.v6.out] Error 1 12 май 2017 г. 17:01:56 ls: cannot access '../../bin/eagle.[if]*': No such file or directory ../../../esptool/esptool.py --baud 230400 -p /dev/cu.usbserial-AH02MF3H write_flash 0x00000 ../../bin/eagle.flash.bin 0x14000 ../../bin/eagle.irom0text.bin
Success! I copy libhal.a to ESP8266_RTOS_SDK/lib/libhal.a and folder xtensa from include.tgz to ESP8266_RTOS_SDK/include/xtensa
What can be done?