Tool/software: Code Composer Studio
There is no related tutorial or code in this regard, because our MPU configures a certain area to be unexecutable, and wants to run the protection of the MPU by copying a function to this RAM area.
Based on the above ideas, I want to test whether flash can implement MPU execution protection. As shown in the following figure, I configured 32 bytes after the start address of 0x6220 (25120) as unexecutable permission, and then executed “ tr1++(25112)” in the program. when starting MPU protection, then the program jumps to "b prefetchEntry". Then I want to ask is that the program has been stuck in the "b prefetchEntry" at this time, how to enter the relevant interrupt function?
Flash Mpu Configuration: