Sfoglia il codice sorgente

Add comment about MPU allocation order

teensy4-core
PaulStoffregen 4 anni fa
parent
commit
adecf720cc
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      teensy4/startup.c

+ 3
- 1
teensy4/startup.c Vedi File

@@ -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…
Annulla
Salva