APPENDIX E Cortex-M3 Troubleshooting Guide
One of the challenges of using the Cortex-M3 is to locate problems when the program goes wrong. The Cortex-M3 processor provides a number of fault status registers to assist in troubleshooting (see Table E.1).
The MMSR, BFSR, and UFSR registers can be accessed in one go using a word transfer instruction. In this situation the combined fault status register is called the Configurable Fault Status Register (CFSR).
Another important piece of information is the stacked Program Counter (PC). This is located in memory address [SP + 0x24]. Since there ...