Statistics: Posted by AgentSmithers — Thu Jun 07, 2018 12:21 pm
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
Statistics: Posted by Pato — Wed Jun 06, 2018 7:59 pm
Code:
CC = xtensa-lx106-elf-gcc
CFLAGS = -I. -DICACHE_FLASH -mlongcalls
LDLIBS = -nostdlib -Wl,--start-group -lmain -lpwm -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc
LDFLAGS = -Teagle.app.v6.ld
INCLUDES = -Iinclude -I../driver_lib/include
html:
esptool.py write_flash --flash_size 32m-c1 0x60000 index.html 0x65000 config.html
screen /dev/ttyUSB0 115200
main-0x00000.bin: main
echo a
echo $(LDFLAGS)
esptool.py elf2image $^
build-fotamain-0x81000.bin: LDFLAGS=-Teagle.app.v6.new.2048.ld
build-fotamain-0x81000.bin: main
esptool.py elf2image --version 2 main -o main-0x81000.bin
build-fotamain-0x01000.bin: LDFLAGS=-Teagle.app.v6.new.2048.ld
build-fotamain-0x01000.bin: main
esptool.py elf2image --version 2 main -o main-0x01000.bin
#fotamain-0x81000.bin: LDFLAGS=-Teagle.app.v6.new.1024.app2.ld
#fotamain-0x81000.bin: LDFLAGS=-Teagle.app.v6.new.2048.app2.ld
fotamain-0x81000.bin: LDFLAGS=-Teagle.app.v6.new.2048.ld
fotamain-0x81000.bin: main
echo b
#echo $(LDFLAGS)
#esptool.py elf2image --version 2 main
#esptool.py write_flash --flash_size 32m-c1 0x81000 main-0x81000.bin
#esptool.py write_flash --flash_size 32m-c1 0x101000 main-0x101000.bin
#esptool.py write_flash --flash_size detect 0x101000 main-0x81000.bin
esptool.py write_flash --flash_size 32m-c1 0x101000 main-0x01000.bin
#fotamain-0x01000.bin: LDFLAGS=-Teagle.app.v6.new.1024.app1.ld
#For some reason the flag below is not applying
fotamain-0x01000.bin: LDFLAGS=-Teagle.app.v6.new.2048.ld
fotamain-0x01000.bin: main
echo c
echo $(LDFLAGS)
esptool.py elf2image --version 2 main
esptool.py write_flash --flash_size 32m-c1 0 boot_v1.7.bin 0x1000 main-0x01000.bin 0x7e000 blank.bin 0xFE000 blank.bin 0x3FC000 ../library/esp_init_data_default_adc33.bin 0x60000 index.html 0x65000 config.html
main: main.o
main.o: main.c
dhonewire: dhonewire.o
dhonewire.o: dhonewire.c
fresh: clean main-0x00000.bin
echo d
echo $(LDFLAGS)
#kill $(ps aux | grep '[S]CREEN' | awk '{print $2}')
esptool.py erase_flash
esptool.py write_flash 0 main-0x00000.bin 0x10000 main-0x10000.bin 0x7e000 blank.bin 0x3fc000 ../library/esp_init_data_default_adc33.bin 0x3fe000 blank.bin 0x60000 index.html 0x65000 config.html
#screen /dev/ttyUSB0 74880
screen /dev/ttyUSB0 115200
flash: LDFLAGS=-Teagle.app.v6.ld
flash: main-0x00000.bin
echo e
echo $(LDFLAGS)
esptool.py write_flash 0 main-0x00000.bin 0x10000 main-0x10000.bin 0x60000 index.html 0x65000 config.html
screen /dev/ttyUSB0 115200
quick: main-0x00000.bin
echo f
echo $(LDFLAGS)
esptool.py write_flash 0 main-0x00000.bin 0x10000 main-0x10000.bin
build: main-0x00000.bin
echo g
echo $(LDFLAGS)
ota: fotamain-0x01000.bin fotamain-0x81000.bin
#export -p
echo h
echo $(LDFLAGS)
#esptool.py write_flash --flash_size 32m-c1 0x81000 main-0x81000.bin
screen:
screen /dev/ttyUSB0 115200
clean:
echo i
rm -f main main.o main*.bin
#echo 'osboxes.org' | sudo -S chmod 777 /dev/ttyUSB0 #No longer needed, osboxes added to dialout group with usermod
cleanall:
echo j
rm -f main main.o main-0x00000.bin main-0x10000.bin main-0x81000.bin main-0x01000.bin
Statistics: Posted by AgentSmithers — Wed Jun 06, 2018 2:03 am
Statistics: Posted by n_kotso1 — Sat Jun 02, 2018 9:24 pm