pengi / arm_gdb

Python module for an easier access to analyze ARM Cortex-M peripherals
MIT License
21 stars 3 forks source link

Add ABFSR register in SCB on Cortex-M7 #6

Closed niklaut closed 1 year ago

niklaut commented 1 year ago

This can be helpful to debug imprecise busfaults on CM7.

See https://developer.arm.com/documentation/dui0646/a/Cortex-M7-Peripherals/Access-control/Auxiliary-Bus-Fault-Status-register

niklaut commented 1 year ago

Of course, imprecise bus faults on CM7 are kind of a pain to debug anyways. This is the results and it's not super helpful…

CFSR                             = 00000400                   // Configurable Fault Status Register
    MMFSR                          ......00 - 00              // MemManage Fault Status Register
    BFSR                           ....04.. - 04              // BusFault Status Register
    IMPRECISERR                    .....4.. - 1               // Indicates if imprecise data access error has occurred.
    UFSR                           0000.... - 0000            // UsageFault Status Register
HFSR                             = 40000000                   // HardFault Status Register
    FORCED                         4....... - 1               // Indicates that a fault with configurable priority has been escalated to a HardFault exception.
DFSR                             = 00000000                   // Debug Fault Status Register
MMFAR                            = 00000000                   // MemManage Fault Address Register
BFAR                             = 00000000                   // BusFault Address Register
AFSR                             = 00000000                   // Auxiliary Fault Status Register
ABFSR - M7                       = 00000308                   // Auxiliary Bus Fault Status - Cortex M7
        AXIMTYPE                   .....3.. - DECERR          // Indicates the type of fault on the AXIM interface
    AXIM                           .......8 - 1               // Asynchronous fault on AXIM interface
pengi commented 1 year ago

Nice! Thanks for the patch

niklaut commented 1 year ago

Could you also tag v0.9.9 for a new release?

pengi commented 1 year ago

Sure, done