Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Cortex-M3 Memory management fault recovery
Jump...
Cancel
Locked
Locked
Replies
8 replies
Subscribers
119 subscribers
Views
10913 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Cortex-M3 Memory management fault recovery
sam sun
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
Hi, is the Cortex-M3 supposed the user to do mannual instructions to recovery from the memory management fault handler?
After enable the MPU feature on my Cortex-M3 processor and stepped into the illegal access instruction, the MMF exception would generated as expected. But after executing of the normal MMF exception handler, the program would go back to the illegal access instruction again! We have inspected the stack of entering the MMF exception, the PC pushed is exactly the illegal instruction, that would be the cause of the loop. So is this the definition of the Cortex-M3 familiy?
The other exceptions would normally adjust the PC value to the next instruction before entering the exception, liked system tick or other IRQs.
BR
Parents
Joseph Yiu
over 12 years ago
Note: This was originally posted on 8th June 2011 at
http://forums.arm.com
Hi Sam,
The exception mechanism in Cortex-M processors is different from classic ARM processors (ARM7, ARM9, etc).
For the memory management fault in Cortex-M3 (or any ARMv7-M processors), it is always returning the to faulting instruction.
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Reply
Joseph Yiu
over 12 years ago
Note: This was originally posted on 8th June 2011 at
http://forums.arm.com
Hi Sam,
The exception mechanism in Cortex-M processors is different from classic ARM processors (ARM7, ARM9, etc).
For the memory management fault in Cortex-M3 (or any ARMv7-M processors), it is always returning the to faulting instruction.
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Children
No data