Commit e5c0078f authored by Dominik Ermel's avatar Dominik Ermel Committed by Jamie
Browse files

boot: Enable MCUBOOT_DEV_WITH_ERASE in other systems



By default enable all other systems to work with devices that
require erase prior to write.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent ecd48775
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@
// TODO: FWSECURITY-755
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS

#define MCUBOOT_DEV_WITH_ERASE

/* Default number of separately updateable images; change in case of
 * multiple images. */
#ifndef MCUBOOT_IMAGE_NUMBER
+2 −0
Original line number Diff line number Diff line
@@ -126,6 +126,8 @@
 * See the flash APIs for more details. */
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS

#define MCUBOOT_DEV_WITH_ERASE

/* Default maximum number of flash sectors per image slot; change
 * as desirable. */
#define MCUBOOT_MAX_IMG_SECTORS 512
+2 −0
Original line number Diff line number Diff line
@@ -78,6 +78,8 @@
 */
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS

#define MCUBOOT_DEV_WITH_ERASE

/*
 * No watchdog integration for now
 */
+2 −0
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@
#define MCUBOOT_BOOT_MAX_ALIGN  MYNEWT_VAL(MCU_FLASH_MIN_WRITE_SIZE)
#endif

#define MCUBOOT_DEV_WITH_ERASE

#if MYNEWT_VAL(BOOTUTIL_FEED_WATCHDOG) && MYNEWT_VAL(WATCHDOG_INTERVAL)
#include <hal/hal_watchdog.h>
#define MCUBOOT_WATCHDOG_FEED()    \
+2 −0
Original line number Diff line number Diff line
@@ -132,6 +132,8 @@

#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS

#define MCUBOOT_DEV_WITH_ERASE

/* Default maximum number of flash sectors per image slot; change
 * as desirable.
 */