From d325e7b5a21b96be21d31c6fe0738350ad1a86ce Mon Sep 17 00:00:00 2001 From: mcudev <29890609+mcudev@users.noreply.github.com> Date: Thu, 5 Jul 2018 16:42:46 -0400 Subject: [PATCH] firmware: update flash_firmware target to use two-part flashing fix (#266) --- SConscript.firmware | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SConscript.firmware b/SConscript.firmware index f8ad202bd2..d50c3e9dd2 100644 --- a/SConscript.firmware +++ b/SConscript.firmware @@ -299,6 +299,7 @@ env.Tool('micropython') env.Replace( CAT='cat', + DD='dd', SED='sed', AS='arm-none-eabi-as', AR='arm-none-eabi-ar', @@ -430,4 +431,5 @@ program_bin = env.Command( '$CAT ${TARGET}.p1 ${TARGET}.p2 > $TARGET', '$BINCTL $TARGET -h', '$BINCTL $TARGET -s 1:2 `$KEYCTL sign firmware $TARGET 4747474747474747474747474747474747474747474747474747474747474747 4848484848484848484848484848484848484848484848484848484848484848`' if ARGUMENTS.get('PRODUCTION', '0') == '0' else '', + '$DD if=$TARGET of=${TARGET}.p1 skip=0 bs=128K count=6', ], )