瀏覽代碼

Add comment about MPU allocation order

teensy4-core
PaulStoffregen 4 年之前
父節點
當前提交
adecf720cc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      teensy4/startup.c

+ 3
- 1
teensy4/startup.c 查看文件

@@ -222,7 +222,9 @@ FLASHMEM void configure_cache(void)
SCB_MPU_RBAR = 0x00000000 | REGION(i++); // ITCM
SCB_MPU_RASR = MEM_NOCACHE | READWRITE | SIZE_512K;

// TODO: trap regions should be created last, because the hardware gives
// priority to the higher number ones.
SCB_MPU_RBAR = 0x00000000 | REGION(i++); // trap NULL pointer deref
SCB_MPU_RASR = DEV_NOCACHE | NOACCESS | SIZE_32B;


Loading…
取消
儲存