DAPLink icon indicating copy to clipboard operation
DAPLink copied to clipboard

No handlers for the Memory management, Bus, or Usage faults

Open microbit-carlos opened this issue 4 years ago • 0 comments

The M3/M4 extra exception handlers are not configured:

For example the micro:bit KL27 is not calling anything: https://github.com/ARMmbed/DAPLink/blob/94885288e25ad6a9290676848b966ddee022d8c1/source/hic_hal/freescale/kl27z/gcc/startup_MKL27Z4.S#L26-L41 https://github.com/ARMmbed/DAPLink/blob/94885288e25ad6a9290676848b966ddee022d8c1/source/hic_hal/freescale/kl27z/armcc/startup_MKL27Z4.s#L75-L90

In other ports there are weak links to MemManage_Handler and others, but I couldn't easily find an implementation: https://github.com/ARMmbed/DAPLink/blob/1c8d620480383a48d911b342a30401d96915de18/source/hic_hal/atmel/sam3u2c/armcc/startup_SAM3U.s#L55-L70

I assume the HardFault_Handler reboots DAPLink and the MSD drive comes back with a fail.txt file. Should the same be done for the other exceptions?

microbit-carlos avatar Aug 24 '21 17:08 microbit-carlos