diff options
author | root <root@lamia.panaceas.james.local> | 2015-09-01 12:30:33 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2015-09-01 12:30:33 +0100 |
commit | 5096109676a11557d1e25707d203f75e5c10b4d5 (patch) | |
tree | 1a225c31028ce5ea075c298266f16c8b4979105e | |
parent | bc5a78ed766ba50ec413d8a2f4ae187c1da40403 (diff) | |
download | blinky-5096109676a11557d1e25707d203f75e5c10b4d5.tar.gz blinky-5096109676a11557d1e25707d203f75e5c10b4d5.tar.bz2 blinky-5096109676a11557d1e25707d203f75e5c10b4d5.zip |
fish
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 $< $@ |