Hi Team,
(1) Can privilege and user access permissions be configured using the "void MPURegionSet(uint32_t ui32Region, uint32_t ui32Addr, uint32_t ui32Flags)" API function? The customer is not sure whether they're in user mode or privilege mode when start writing code in the main function after booting up on the TM4C123GH6PM microcontroller.
(2) When using "MPU_RGN_PERM_PRV_RO_USR_NO," it seems that the chip becomes read-only, and with "MPU_RGN_PERM_PRV_RW_USR_NO," it becomes readable and writable. It appears that the customer is in privilege mode. Could you help tell how to switch touser mode to test the MPU settings in user mode?
(3) Can the MPU restrict the behavior of the in-circuit emulator (ICE) on the TM4C123GH6PM microcontroller? For example, if configure it with "MPU_RGN_PERM_PRV_RO_USR_NO," can this prevent data downloads to Flash or programming of Flash memory using the ICE?
Could you help check this case? Thanks.
Best Regards,
Cherry