Skip to content

Commit 1a47dd8

Browse files
committed
Test on H5 HW wire WOLFBOOT_TZ_TEST_NO_BKPT make-flag through CFLAGS
The auto-test block in app_stm32h5.c gates its bkpt #0x7f / #0x7e on WOLFBOOT_TZ_TEST_NO_BKPT, but the make-flag was never propagated to CFLAGS. Building with make WOLFBOOT_TZ_TEST_NO_BKPT=1 now actually swaps the BKPTs for printf(WOLFHSM_TZ_TEST_{PASS,FAIL}) + while(1) loops, which is the canonical hardware-test path (per D25) since real silicon HardFaults on bkpt without a debugger attached. Verified on NUCLEO-H563ZI hardware: wolfHSM CommInit ok (client=1 server=56) wolfHSM RNG ok: <16 random bytes> wolfHSM NSC tests passed WOLFHSM_TZ_TEST_PASS
1 parent 23ce21b commit 1a47dd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test-app/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ ifeq ($(TZEN),1)
369369
CFLAGS+=-DWOLFHSM_CFG_COMM_DATA_LEN=1280
370370
CFLAGS+=-DWOLFHSM_CFG_PORT_STM32_TZ_NSC
371371
CFLAGS+=-DWOLFHSM_CFG_NO_SYS_TIME
372+
ifeq ($(WOLFBOOT_TZ_TEST_NO_BKPT),1)
373+
CFLAGS+=-DWOLFBOOT_TZ_TEST_NO_BKPT
374+
endif
372375
CFLAGS+=-I"$(WOLFBOOT_LIB_WOLFHSM)"
373376
CFLAGS+=-I"$(WOLFBOOT_LIB_WOLFHSM)/port/stmicro/stm32-tz"
374377
WOLFCRYPT_APP_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/cryptocb.o

0 commit comments

Comments
 (0)