Skip to content

Commit

Permalink
imxrt: 1170 MPU config ensure no lockups can occur
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervdPerk-NXP committed May 17, 2024
1 parent 9257af5 commit 755d3e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/src/imxrt/imxrt117x_mpuinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
MPU_RASR_XN; /* Execute-never to prevent instruction fetch */
putreg32(regval, MPU_RASR);

#ifdef CONFIG_IMXRT_SEMC
mpu_configure_region(IMXRT_SEMC0_BASE, 512 * 1024 * 1024,

/* Instruction access Enabled */
Expand All @@ -62,6 +63,7 @@
/* Not Shareable */
/* No Subregion disable */
);
#endif

mpu_configure_region(IMXRT_FLEXSPI2_CIPHER_BASE, 512 * 1024 * 1024,

Expand Down Expand Up @@ -91,7 +93,7 @@

/* Instruction access Enabled */

MPU_RASR_AP_RWRW | /* P:RW U:RW */
MPU_RASR_AP_RORO | /* P:R0 U:R0 */
MPU_RASR_TEX_NOR /* Normal */
/* Not Cacheable */
/* Not Bufferable */
Expand Down

0 comments on commit 755d3e7

Please sign in to comment.