瀏覽代碼

Add comment about MPU allocation order

main
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…
取消
儲存