We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67834a8 commit f6f2e57Copy full SHA for f6f2e57
soc/renesas/ra/ra6m5/soc.c
@@ -57,9 +57,16 @@ void soc_early_init_hook(void)
57
R_PSCU->PSARD = 0;
58
R_PSCU->PSARE = 0;
59
60
- R_CPSCU->ICUSARG = 0;
61
- R_CPSCU->ICUSARH = 0;
62
- R_CPSCU->ICUSARI = 0;
+ /* The secure Attribute managed within the ARM CPU NVIC must match the
+ * security attribution of IELSEn registers (Reference section 13.2.9
+ * in the RA6M4 manual R01UH0890EJ0050).
63
+ */
64
+ uint32_t volatile *p_icusarg = &R_CPSCU->ICUSARG;
65
+
66
+ for (int i = 0; i < BSP_ICU_VECTOR_MAX_ENTRIES / NUM_BITS(uint32_t); i++) {
67
+ p_icusarg[i] = 0;
68
+ NVIC->ITNS[i] = 0;
69
+ }
70
71
/* Enable protection using PRCR register. */
72
R_BSP_RegisterProtectEnable(BSP_REG_PROTECT_SAR);
0 commit comments