Code:
CC = xtensa-lx106-elf-gcc
CFLAGS = -I. -DICACHE_FLASH -mlongcalls
LDLIBS = -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc
LDFLAGS = -Teagle.app.v6.ld
INCLUDES = -Iinclude -I../driver_lib/include
blinky-0x00000.bin: blinky
esptool.py elf2image --version 1 $^
blinky: blinky.o
blinky.o: blinky.c
dhonewire: dhonewire.o
dhonewire.o: dhonewire.c
fresh: blinky-0x00000.bin
#kill $(ps aux | grep '[S]CREEN' | awk '{print $2}')
esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin 0x7e000 blank.bin 0x3fc000 esp_init_data_default.bin 0x3fe000 blank.bin 0x60000 index.html 0x80000 config.html
#screen /dev/ttyUSB0 74880
screen /dev/ttyUSB0 115200
flash: blinky-0x00000.bin
esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin 0x60000 index.html 0x80000 config.html
screen /dev/ttyUSB0 115200
quick: blinky-0x00000.bin
esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin
screen /dev/ttyUSB0 115200
build: blinky-0x00000.bin
screen /dev/ttyUSB0 115200
ota: blinky
esptool.py elf2image --version 2 $^
esptool.py write_flash 0x10000 blinky-0x10000.bin
screen /dev/ttyUSB0 115200
clean:
rm -f blinky blinky.o blinky-0x00000.bin blinky-0x10000.bin
Statistics: Posted by AgentSmithers — Mon May 01, 2017 2:12 pm
Statistics: Posted by AgentSmithers — Mon Apr 24, 2017 11:46 pm
Statistics: Posted by ESP_Kewal — Sat Apr 22, 2017 6:31 pm
Code:
xtensa-lx106-elf-gcc -Teagle.app.v6.ld blinky.o -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc -o blinky
blinky.o:(.irom0.literal+0x47c): undefined reference to `gpio_intr_deattach'
blinky.o:(.irom0.literal+0x498): undefined reference to `set_gpio_mode'
blinky.o:(.irom0.literal+0x49c): undefined reference to `gpio_intr_init'
blinky.o:(.irom0.literal+0x4a0): undefined reference to `gpio_intr_attach'
blinky.o: In function `network_check_ip_send_therm':
blinky.c:(.irom0.text+0x2bf3): undefined reference to `gpio_intr_deattach'
blinky.o: In function `LoadStationAndSendData':
blinky.c:(.irom0.text+0x2c36): undefined reference to `set_gpio_mode'
blinky.c:(.irom0.text+0x2c5a): undefined reference to `gpio_intr_init'
blinky.o: In function `SetAllGPIOPinsAsOutput':
blinky.c:(.irom0.text+0x2c87): undefined reference to `gpio_intr_attach'
collect2: error: ld returned 1 exit status
make: *** [blinky] Error 1
Statistics: Posted by AgentSmithers — Sat Apr 22, 2017 7:26 am