-
- Downloads
stmhal: Add pyb.fault_debug() function, to control hard-fault behaviour.
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.
Showing
- docs/library/pyb.rst 13 additions, 0 deletionsdocs/library/pyb.rst
- stmhal/modpyb.c 9 additions, 0 deletionsstmhal/modpyb.c
- stmhal/stm32_it.c 7 additions, 13 deletionsstmhal/stm32_it.c
- stmhal/stm32_it.h 2 additions, 0 deletionsstmhal/stm32_it.h
- tests/pyb/pyb1.py 3 additions, 0 deletionstests/pyb/pyb1.py
Please register or sign in to comment