From 4cb4be21d980e697a9f480186b3f5b55064be964 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Sat, 14 Jul 2018 23:03:25 -0400 Subject: [PATCH] finish bootloader --- Makefile | 4 + efm32/.cproject | 10 +- efm32/EFM32.hwconf | 5 + efm32/{src => inc}/app.h | 0 efm32/src/InitDevice.c | 3 + efm32/src/device.c | 112 ++++- efm32boot/.cproject | 11 +- efm32boot/inc/app.h | 11 + efm32boot/src/boot.c | 98 ++++ efm32boot/src/main.c | 106 ++++- fido2/ctaphid.c | 11 +- fido2/u2f.c | 5 +- fido2/wallet.c | 14 +- tools/http2udb.py | 28 +- web/index.html | 2 + web/js/intel-hex.js | 977 +++++++++++++++++++++++++++++++++++++++ web/js/wallet.js | 158 ++++++- 17 files changed, 1504 insertions(+), 51 deletions(-) rename efm32/{src => inc}/app.h (100%) create mode 100644 efm32boot/src/boot.c create mode 100644 web/js/intel-hex.js diff --git a/Makefile b/Makefile index 507e600..b97a66d 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,10 @@ efm32prog: cd '.\efm32\GNU ARM v7.2.1 - Debug' && $(MAKE) all commander flash '.\efm32\GNU ARM v7.2.1 - Debug\EFM32.hex' -s 440121060 +efm32bootprog: + cd '.\efm32boot\GNU ARM v7.2.1 - Debug' && $(MAKE) all + commander flash '.\efm32boot\GNU ARM v7.2.1 - Debug\efm32boot.hex' -s 440121060 + $(name): $(obj) $(CC) $(LDFLAGS) -o $@ $(obj) $(LDFLAGS) diff --git a/efm32/.cproject b/efm32/.cproject index 0f9b67d..1c5ecb7 100644 --- a/efm32/.cproject +++ b/efm32/.cproject @@ -29,6 +29,14 @@