TI E2E Community
Stellaris® ARM® Microcontrollers
Stellaris® ARM® LM3S Microcontrollers Forum
illegal memory access
1. How to check illegal memory access in lm3s9b92 microcontroller
You would want to review the value in FAULTSTAT (which is actually four 8-bit fault registers). Those registers will contain the identified cause and whether an address was identified as the location that caused the fault. If an address was identified, it will be stored in the MMADDR or FAULTADDR depending on the type of fault that was generated.
A fault or exception will also result in registers being pushed onto the stack in this order: R0, R1, R2, R3, R12, LR, PC. Those can also be useful in narrowing the cause of the fault further.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.