• Damien George's avatar
    stmhal: Add pyb.fault_debug() function, to control hard-fault behaviour. · 27c149ef
    Damien George authored
    This new function controls what happens on a hard-fault:
    - debugging disabled: board will do a reset
    - debugging enabled: board will print registers and stack and flash LEDs
    
    The default is disabled, ie to do a reset.  This is different to previous
    behaviour which flashed the LEDs and waited indefinitely.
    27c149ef
pyb.rst 11 KB