Makefile.esp8266_at 653 B

1234567891011121314151617181920212223
  1. # Makefile for older versions (<1.0) of Espressif "AT" firmware
  2. CC = xtensa-lx106-elf-gcc
  3. CFLAGS = -Os -Iinclude -mlongcalls
  4. LDLIBS = -nostdlib -Wl,--start-group -lmain -lupgrade -lnet80211 -lwpa -llwip -lpp -lphy -Wl,--end-group -lcirom -lgcc
  5. LDFLAGS = -Teagle.app.v6.ld
  6. at-0x00000.bin: at
  7. esptool.py elf2image $^
  8. at: driver/uart.o \
  9. user/at_baseCmd.o \
  10. user/at_cmd.o \
  11. user/at_ipCmd.o \
  12. user/at_wifiCmd.o \
  13. user/at_port.o \
  14. user/user_main.o
  15. $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)
  16. flash: at-0x00000.bin
  17. esptool.py write_flash 0 at-0x00000.bin 0x40000 at-0x40000.bin
  18. connect:
  19. picocom -b 115200 --omap crcrlf /dev/ttyUSB0