Skip to content

Commit f1d2151

Browse files
samples: mgmt: mcumgr: add testcase for ramload with revert
Add testcase to build mcuboot and smp_svr application using ramload with revert mode Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 3fe074b commit f1d2151

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
CONFIG_USE_DT_CODE_PARTITION=y
2+
# Force the slot size- imgtool will try to use the smaller slot size, but
3+
# we want to add a trailing on the primary slot (which is larger)
4+
CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS="--slot-size=3670016"

samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,17 @@ tests:
178178
platform_allow:
179179
- nrf52840dk/nrf52840
180180
- mimxrt1050_evk/mimxrt1052/hyperflash
181+
sample.mcumgr.smp_svr.ram_load_revert.serial:
182+
extra_args:
183+
- FILE_SUFFIX="ram_load"
184+
- EXTRA_CONF_FILE="overlay-serial.conf"
185+
- SB_CONFIG_MCUBOOT_MODE_RAM_LOAD_WITH_REVERT=y
186+
- smp_svr_CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE=y
187+
- mcuboot_CONFIG_MCUBOOT_LOG_LEVEL_DBG=y # Required for RT1050- likely a flash bug?
188+
platform_allow:
189+
- mimxrt1050_evk/mimxrt1052/hyperflash
181190
integration_platforms:
182-
- nrf52840dk/nrf52840
191+
- mimxrt1050_evk/mimxrt1052/hyperflash
183192
sample.mcumgr.smp_svr.ram_load.serial.fs.shell:
184193
extra_args:
185194
- FILE_SUFFIX="ram_load"

0 commit comments

Comments
 (0)