Skip to content

Commit bbd8afc

Browse files
committed
Fixed DICE test failures
1 parent ca51036 commit bbd8afc

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

hal/stm32_tz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void hal_tz_sau_init(void)
311311
WOLFBOOT_PARTITION_BOOT_ADDRESS + WOLFBOOT_PARTITION_SIZE - 1, 0);
312312

313313
/* Non-secure RAM region */
314-
sau_init_region(2, 0x20050000, 0x2008FFFF, 0);
314+
sau_init_region(2, 0x20050000, 0x2009FFFF, 0);
315315

316316
/* Non-secure: internal peripherals */
317317
sau_init_region(3, 0x40000000, 0x4FFFFFFF, 0);

src/dice/dice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ static int wolfboot_dice_fixup_priv(uint8_t *priv, size_t priv_len)
491491
ret = mp_mod(&k, &order, &mod);
492492
}
493493
if (ret == MP_OKAY && mp_iszero(&mod) == MP_YES) {
494-
ret = mp_set_int(&mod, 1);
494+
ret = mp_set(&mod, 1);
495495
}
496496
if (ret == MP_OKAY) {
497497
XMEMSET(priv, 0, priv_len);

test-app/emu-test-apps/stm32h563/target.ld.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
MEMORY
2424
{
2525
FLASH (rx) : ORIGIN = @FLASH_ORIGIN@, LENGTH = 0x001FFF00
26-
RAM (rwx) : ORIGIN = 0x20050000, LENGTH = 0x00040000
26+
RAM (rwx) : ORIGIN = 0x20050000, LENGTH = 0x00050000
2727
}
2828

2929
_estack = ORIGIN(RAM) + LENGTH(RAM);

test-app/emu-test-apps/stm32h563/target_v8.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
MEMORY
2424
{
2525
FLASH (rx) : ORIGIN = 0x8060100, LENGTH = 0x001FFF00
26-
RAM (rwx) : ORIGIN = 0x20050000, LENGTH = 0x00040000
26+
RAM (rwx) : ORIGIN = 0x20050000, LENGTH = 0x00050000
2727
}
2828

2929
_estack = ORIGIN(RAM) + LENGTH(RAM);

0 commit comments

Comments
 (0)