Commit 23e3853c authored by Marti Bolivar's avatar Marti Bolivar Committed by David Brown
Browse files

zephyr: CMakeLists.txt: support nrfjprog mass erase flag

The upstream Zephyr runner for nrfjprog now supports an --erase
toggle, which controls whether a mass-erase is done. Add that to its
invocation when CONF_ZEPHYR_TRY_MASS_ERASE is given, just like is done
for dfu-util and pyocd.

Signed-off-by: default avatarMarti Bolivar <marti@foundries.io>
parent adf57829
Loading
Loading
Loading
Loading
+1
Changes for boot/zephyr/CMakeLists.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ macro(app_set_runner_args)
  if(CONFIG_ZEPHYR_TRY_MASS_ERASE)
    board_runner_args(dfu-util "--dfuse-modifiers=force:mass-erase")
    board_runner_args(pyocd "--flashtool-opt=-ce")
    board_runner_args(nrfjprog "--erase")
  endif()
endmacro()