Skip to content

Commit 77a3205

Browse files
hakonfamthst-nordic
authored andcommitted
dfu: depend on IMG_ERASE_PROGRESSIVELY
This fixes bug where only one DFU procedure could be performed as the flash was not erased between the operations. Signed-off-by: Håkon Øye Amundsen <[email protected]>
1 parent d569ffc commit 77a3205

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

applications/asset_tracker/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ CONFIG_MCUBOOT_IMG_MANAGER=y
8484

8585
# Flash
8686
CONFIG_FLASH=y
87+
CONFIG_IMG_ERASE_PROGRESSIVELY=y
8788

8889
# AWS FOTA
8990
CONFIG_AWS_FOTA=y

applications/asset_tracker/prj_nrf9160_pca20035ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ CONFIG_MPU_ALLOW_FLASH_WRITE=y
111111
CONFIG_BOOTLOADER_MCUBOOT=y
112112
CONFIG_IMG_MANAGER=y
113113
CONFIG_MCUBOOT_IMG_MANAGER=y
114+
CONFIG_IMG_ERASE_PROGRESSIVELY=y
114115

115116
# AWS FOTA
116117
CONFIG_AWS_FOTA=y

samples/nrf9160/aws_fota/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ CONFIG_BOOTLOADER_MCUBOOT=y
4848
# Image manager
4949
CONFIG_IMG_MANAGER=y
5050
CONFIG_FLASH=y
51+
CONFIG_IMG_ERASE_PROGRESSIVELY=y
5152

5253
# Enable Log
5354
CONFIG_LOG=y

samples/nrf9160/http_application_update/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ CONFIG_MAIN_STACK_SIZE=8192
4141
# Image manager
4242
CONFIG_IMG_MANAGER=y
4343
CONFIG_FLASH=y
44+
CONFIG_IMG_ERASE_PROGRESSIVELY=y
4445

4546
# GPIO
4647
CONFIG_GPIO=y

subsys/dfu/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config DFU_TARGET_MCUBOOT
1414
default y
1515
depends on IMG_MANAGER
1616
depends on BOOTLOADER_MCUBOOT
17+
depends on IMG_ERASE_PROGRESSIVELY
1718
imply MPU_ALLOW_FLASH_WRITE
1819
help
1920
Enable support for updates that are performed by MCUboot.

tests/subsys/dfu/dfu_target/mcuboot/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
CONFIG_ZTEST=y
77
CONFIG_FLASH=y
8+
CONFIG_IMG_ERASE_PROGRESSIVELY=y
89
CONFIG_BOOTLOADER_MCUBOOT=n
910
CONFIG_IMG_MANAGER=y
1011
CONFIG_DFU_TARGET=y

0 commit comments

Comments
 (0)