|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2026 Arm Limited |
| 4 | + |
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | +
|
| 9 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | +--> |
| 17 | +<component_viewer schemaVersion="0.1" xmlns:xs="https://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd"> |
| 18 | + <component name="FaultReportsComponent" version="1.0.0"/> |
| 19 | + <typedefs> |
| 20 | + <typedef name="StandardFaultRegisters_t" size="0x18"> |
| 21 | + <member name="MMFSR" type="uint8_t" offset="0x00"/> |
| 22 | + <member name="BFSR" type="uint8_t" offset="0x01"/> |
| 23 | + <member name="UFSR" type="uint16_t" offset="0x02"/> |
| 24 | + <member name="HFSR" type="uint32_t" offset="0x04"/> |
| 25 | + <member name="DFSR" type="uint32_t" offset="0x08"/> |
| 26 | + <member name="MMFAR" type="uint32_t" offset="0x0C"/> |
| 27 | + <member name="BFAR" type="uint32_t" offset="0x10"/> |
| 28 | + <member name="AFSR" type="uint32_t" offset="0x14"/> |
| 29 | + </typedef> |
| 30 | + <typedef name="SecureFaultRegisters_t" size="0x08"> |
| 31 | + <member name="SFSR" type="uint32_t" offset="0x00"/> |
| 32 | + <member name="SFAR" type="uint32_t" offset="0x04"/> |
| 33 | + </typedef> |
| 34 | + </typedefs> |
| 35 | + <objects> |
| 36 | + <object name="FaultReportsObject"> |
| 37 | + <read name="StandardFaultRegisters" type="StandardFaultRegisters_t" offset="0xE000ED28"/> |
| 38 | + <read name="ID_PFR1" type="uint32_t" offset="0xE000ED44"/> |
| 39 | + <var name="ShowSecureFaults" type="uint8_t" value="0"/> |
| 40 | + <calc> |
| 41 | + ShowSecureFaults=1&&(ID_PFR1&0xF0); |
| 42 | + </calc> |
| 43 | + <read name="SecureFaultRegisters" cond="ShowSecureFaults" type="SecureFaultRegisters_t" offset="0xE000EDE4"/> |
| 44 | + <out name="Fault Reports"> |
| 45 | + <item property="ID_PFR1" value="%x[ID_PFR1]"/> |
| 46 | + <item property="Memory Manage Faults" value=""> |
| 47 | + <item property="Address (SCB->MMFAR)" value="%x[StandardFaultRegisters.MMFAR]"> |
| 48 | + </item> |
| 49 | + <item property="Status (SCB->CFSR->MMFSR)" value="%x[StandardFaultRegisters.MMFSR]"> |
| 50 | + <item property="IACCVIOL" value="%d[(StandardFaultRegisters.MMFSR>>0)&0x1]"/> |
| 51 | + <item property="DACCVIOL" value="%d[(StandardFaultRegisters.MMFSR>>1)&0x1]"/> |
| 52 | + <item property="MUNSTKERR" value="%d[(StandardFaultRegisters.MMFSR>>3)&0x1]"/> |
| 53 | + <item property="MSTKERR" value="%d[(StandardFaultRegisters.MMFSR>>4)&0x1]"/> |
| 54 | + <item property="MLSPERR" value="%d[(StandardFaultRegisters.MMFSR>>5)&0x1]"/> |
| 55 | + <item property="MMFARVALID" value="%d[(StandardFaultRegisters.MMFSR>>7)&0x1]"/> |
| 56 | + </item> |
| 57 | + </item> |
| 58 | + <item property="Bus Faults" value=""> |
| 59 | + <item property="Address (SCB->BFAR)" value="%x[StandardFaultRegisters.BFAR]"> |
| 60 | + </item> |
| 61 | + <item property="Status (SCB->CFSR->BFSR)" value="%x[StandardFaultRegisters.BFSR]"> |
| 62 | + <item property="IBUSERR" value="%d[(StandardFaultRegisters.BFSR>>0)&0x1]"/> |
| 63 | + <item property="PRECISERR" value="%d[(StandardFaultRegisters.BFSR>>1)&0x1]"/> |
| 64 | + <item property="IMPRECISERR" value="%d[(StandardFaultRegisters.BFSR>>2)&0x1]"/> |
| 65 | + <item property="UNSTKERR" value="%d[(StandardFaultRegisters.BFSR>>3)&0x1]"/> |
| 66 | + <item property="STKERR" value="%d[(StandardFaultRegisters.BFSR>>4)&0x1]"/> |
| 67 | + <item property="LSPERR" value="%d[(StandardFaultRegisters.BFSR>>5)&0x1]"/> |
| 68 | + <item property="BFARVALID" value="%d[(StandardFaultRegisters.BFSR>>7)&0x1]"/> |
| 69 | + </item> |
| 70 | + </item> |
| 71 | + <item property="Usage Faults" value=""> |
| 72 | + <item property="Status (SCB->CFSR->UFSR)" value="%x[StandardFaultRegisters.UFSR]"> |
| 73 | + <item property="UNDEFINSTR" value="%d[(StandardFaultRegisters.UFSR>>0)&0x1]"/> |
| 74 | + <item property="INVSTATE" value="%d[(StandardFaultRegisters.UFSR>>1)&0x1]"/> |
| 75 | + <item property="INVPC" value="%d[(StandardFaultRegisters.UFSR>>2)&0x1]"/> |
| 76 | + <item property="NOCP" value="%d[(StandardFaultRegisters.UFSR>>3)&0x1]"/> |
| 77 | + <item property="STKOF" value="%d[(StandardFaultRegisters.UFSR>>4)&0x1]"/> |
| 78 | + <item property="UNALIGNED" value="%d[(StandardFaultRegisters.UFSR>>8)&0x1]"/> |
| 79 | + <item property="DIVBYZERO" value="%d[(StandardFaultRegisters.UFSR>>9)&0x1]"/> |
| 80 | + </item> |
| 81 | + </item> |
| 82 | + <item property="Hard Faults" value=""> |
| 83 | + <item property="Status (SCB->HFSR)" value="%x[StandardFaultRegisters.HFSR]"> |
| 84 | + <item property="VECTTBL" value="%d[(StandardFaultRegisters.HFSR>>1)&0x1]"/> |
| 85 | + <item property="FORCED" value="%d[(StandardFaultRegisters.HFSR>>30)&0x1]"/> |
| 86 | + <item property="DEBUGEVT" value="%d[(StandardFaultRegisters.HFSR>>31)&0x1]"/> |
| 87 | + </item> |
| 88 | + </item> |
| 89 | + <item property="Debug Faults" value=""> |
| 90 | + <item property="Status (SCB->DFSR)" value="%x[StandardFaultRegisters.DFSR]"> |
| 91 | + <item property="HALTED" value="%d[(StandardFaultRegisters.DFSR>>0)&0x1]"/> |
| 92 | + <item property="BKPT" value="%d[(StandardFaultRegisters.DFSR>>1)&0x1]"/> |
| 93 | + <item property="DWTTRAP" value="%d[(StandardFaultRegisters.DFSR>>2)&0x1]"/> |
| 94 | + <item property="VCATCH" value="%d[(StandardFaultRegisters.DFSR>>3)&0x1]"/> |
| 95 | + <item property="EXTERNAL" value="%d[(StandardFaultRegisters.DFSR>>4)&0x1]"/> |
| 96 | + <item property="PMU" value="%d[(StandardFaultRegisters.DFSR>>5)&0x1]"/> |
| 97 | + </item> |
| 98 | + </item> |
| 99 | + <item property="Auxiliary Faults" value=""> |
| 100 | + <item property="Status (SCB->AFSR)" value="%x[StandardFaultRegisters.AFSR]"> |
| 101 | + </item> |
| 102 | + </item> |
| 103 | + <item property="Secure Faults" cond="ShowSecureFaults" value=""> |
| 104 | + <item property="Address (SCB->SFAR)" value="%x[SecureFaultRegisters.SFAR]"> |
| 105 | + </item> |
| 106 | + <item property="Status (SCB->CFSR->BFSR)" value="%x[SecureFaultRegisters.SFSR]"> |
| 107 | + <item property="INVEP" value="%d[(SecureFaultRegisters.SFSR>>0)&0x1]"/> |
| 108 | + <item property="INVIS" value="%d[(SecureFaultRegisters.SFSR>>1)&0x1]"/> |
| 109 | + <item property="INVER" value="%d[(SecureFaultRegisters.SFSR>>2)&0x1]"/> |
| 110 | + <item property="AUVIOL" value="%d[(SecureFaultRegisters.SFSR>>3)&0x1]"/> |
| 111 | + <item property="INVTRAN" value="%d[(SecureFaultRegisters.SFSR>>4)&0x1]"/> |
| 112 | + <item property="LSPERR" value="%d[(SecureFaultRegisters.SFSR>>5)&0x1]"/> |
| 113 | + <item property="SFARVALID" value="%d[(SecureFaultRegisters.SFSR>>6)&0x1]"/> |
| 114 | + <item property="LSERR" value="%d[(SecureFaultRegisters.SFSR>>7)&0x1]"/> |
| 115 | + </item> |
| 116 | + </item> |
| 117 | + </out> |
| 118 | + </object> |
| 119 | + </objects> |
| 120 | +</component_viewer> |
0 commit comments