From 259299575c0a0f6f7c4c55641314df5f5931c4f3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 9 Aug 2015 12:25:45 +0300 Subject: [PATCH] examples: Makefile for older versions (<1.0) of Espressif "AT" firmware. --- examples/Makefile.esp8266_at | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/Makefile.esp8266_at diff --git a/examples/Makefile.esp8266_at b/examples/Makefile.esp8266_at new file mode 100644 index 0000000..8726937 --- /dev/null +++ b/examples/Makefile.esp8266_at @@ -0,0 +1,23 @@ +# Makefile for older versions (<1.0) of Espressif "AT" firmware +CC = xtensa-lx106-elf-gcc +CFLAGS = -Os -Iinclude -mlongcalls +LDLIBS = -nostdlib -Wl,--start-group -lmain -lupgrade -lnet80211 -lwpa -llwip -lpp -lphy -Wl,--end-group -lcirom -lgcc +LDFLAGS = -Teagle.app.v6.ld + +at-0x00000.bin: at + esptool.py elf2image $^ + +at: driver/uart.o \ + user/at_baseCmd.o \ + user/at_cmd.o \ + user/at_ipCmd.o \ + user/at_wifiCmd.o \ + user/at_port.o \ + user/user_main.o + $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS) + +flash: at-0x00000.bin + esptool.py write_flash 0 at-0x00000.bin 0x40000 at-0x40000.bin + +connect: + picocom -b 115200 --omap crcrlf /dev/ttyUSB0