From d745b719a944269b357ff8d2d25ab1ba7de3c00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 26 Nov 2018 16:45:27 +0100 Subject: [PATCH] [build/padding] Pad with FF FF FF FF in hex Using "echo" added a \n at the end of the input --- build/targets.device.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/targets.device.mak b/build/targets.device.mak index a5231c3ed..5a33eea6f 100644 --- a/build/targets.device.mak +++ b/build/targets.device.mak @@ -12,8 +12,9 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products))) # We pad the device binary files because there was a bug in an older version of # the dfu code, and it did not upload properly a binary of length non-multiple # of 32 bits. +#TODO: We over-pad here, pad with the the needed amount of bytes only. @echo "Padding $@" - @echo "\x1\x1\x1\x1" >> $@ + $(Q) printf "\xFF\xFF\xFF\xFF" >> $@ .PHONY: %_size %_size: %.$(EXE)