Skip to content

Commit 9f9ca0a

Browse files
committed
M2351: Fix CRYPTO_MODBASE() when crypto module is configured to secure
This bug results from BSP update: - CRPT: Base address of secure or non-secure crypto module, dependent on partition - CRPT_S: Base address of secure crypto module - CRPT_NS: Base address of non-secured crypto module
1 parent 834e1aa commit 9f9ca0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NUVOTON/TARGET_M2351/crypto/crypto-misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ __STATIC_INLINE CRPT_T *CRYPTO_MODBASE(void)
5252
#if defined(SCU_INIT_PNSSET1_VAL) && (SCU_INIT_PNSSET1_VAL & (1<<18))
5353
return CRPT_NS;
5454
#else
55-
return CRPT;
55+
return CRPT_S;
5656
#endif
5757
}
5858

0 commit comments

Comments
 (0)