Skip to content

Commit

Permalink
fix esp flasher
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Dec 7, 2017
1 parent 4a534c8 commit 2f036d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boardesp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ else
endif

flashall: user1.bin user2.bin
../panda/esptool.py write_flash 0 $(SDK_BASE)/bin/boot_v1.5.bin 0x01000 user1.bin 0x81000 user2.bin 0x3FE000 $(SDK_BASE)/bin/blank.bin
../python/esptool.py write_flash 0 $(SDK_BASE)/bin/boot_v1.5.bin 0x01000 user1.bin 0x81000 user2.bin 0x3FE000 $(SDK_BASE)/bin/blank.bin

proxy-0x00000.bin: proxy
../panda/esptool.py elf2image $^
../python/esptool.py elf2image $^

proxy: proxy.o elm327.o webserver.o sha.o

Expand All @@ -42,7 +42,7 @@ obj/rsa.o: ../crypto/rsa.c
$(CC) $(CFLAGS) -c $^ -o $@

oldflash: proxy-0x00000.bin
../panda/esptool.py write_flash 0 proxy-0x00000.bin 0x40000 proxy-0x40000.bin
../python/esptool.py write_flash 0 proxy-0x00000.bin 0x40000 proxy-0x40000.bin

user1.bin: obj/proxy.o obj/elm327.o obj/webserver.o obj/sha.o obj/rsa.o
$(CC) $(CFLAGS) $^ -o a.out -L$(SDK_BASE)/ld -T$(SDK_BASE)/ld/eagle.app.v6.new.1024.app1.ld $(LDLIBS)
Expand Down

0 comments on commit 2f036d2

Please sign in to comment.