TM4C MPU
TM4C MPU 可定義在一區塊中可分成8個相等的記憶體子區塊 要使用子區塊需使用大於 256 Bytes 大小的區塊 MPU 可用在所有區塊包含以下功能: Location Size Access permissions Memory attributes 而存取禁止區塊會造成記憶體管理錯誤 memory management fault 以下資料參考 TI TM4C LaunchPad Workshop MPU 內容 MPURegionSet() uses the following parameters: Region number to set up Address of the region(as aligned by the flags) Flags Flags are a set of parameters(OR’d together) that determine the attributes of the region(size | execute permission | read/write permission | sub-region disable | enable/disable) The size flag determines the size of a region and must be one of the following: MPU_RGN_SIZE_32B MPU_RGN_SIZE_64B MPU_RGN_SIZE_128B MPU_RGN_SIZE_256B MPU_RGN_SIZE_512B MPU_RGN_SIZE_1K ... MPU_RGN_SIZE_512K MPU_RGN_SIZE_1M ... MPU_RGN_SIZE_512M MPU_RGN_SIZE_1G MPU_RGN_SIZE_2G MPU_RGN_SIZE_4G The execute permission flag must be one of the following: MPU_RGN_PERM_EXEC enable the region for execution of code MPU_RGN_PERM_NOEXEC disables the re...