From 5096109676a11557d1e25707d203f75e5c10b4d5 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Sep 2015 12:30:33 +0100 Subject: fish --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c6c1233..69e038b 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ LINKER_SCRIPT=s130-bootloader.ld APP_VERSION=0xFFFFFFFF DEV_REVISION=0xFFFF DEV_TYPE=0xFFFF -SD_REQ=0xFFEE +SD_REQ=0xFFFE INCLUDES += -Isdk-config -I${SDK} #INCLUDES += -Iconfig @@ -143,8 +143,15 @@ ds: debug: ${PROG} ${GDB} -x gdb.script ${PROG} +test.hex:test.bin + bin2hex.py --offset=0x1c000 $< $@ -${PROG}.zip: ${PROG}.hex +test.bin: + printf '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f' > $@ + printf '\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f' >> $@ + + +%.zip: %.hex ${NRFUTIL} dfu genpkg --dev-revision ${DEV_REVISION} --dev-type ${DEV_TYPE} --application-version ${APP_VERSION} --sd-req ${SD_REQ} --application $< $@ -- cgit v1.2.3