Skip to content

Commit

Permalink
Merge pull request #546 from FrankBoesing/patch-3
Browse files Browse the repository at this point in the history
Fix Teensy 4 MPU settings for FlexSPI2
  • Loading branch information
PaulStoffregen authored Mar 16, 2021
2 parents 14f143d + 11b4a14 commit a2368ad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions teensy4/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ FLASHMEM void configure_cache(void)
SCB_MPU_RBAR = 0x60000000 | REGION(i++); // QSPI Flash
SCB_MPU_RASR = MEM_CACHE_WBWA | READONLY | SIZE_16M;

SCB_MPU_RBAR = 0x70000000 | REGION(i++); // FlexSPI2
SCB_MPU_RASR = MEM_CACHE_WBWA | READONLY | NOEXEC | SIZE_256M;

SCB_MPU_RBAR = 0x70000000 | REGION(i++); // FlexSPI2
SCB_MPU_RASR = MEM_CACHE_WBWA | READWRITE | NOEXEC | SIZE_16M;

Expand Down

1 comment on commit a2368ad

@FrankBoesing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the first entry as well.

Please sign in to comment.