• Adam Wujek's avatar
    wrs_main: check for stack overflow and detect reset · da3da2d9
    Adam Wujek authored
    Add checking stack overflow and detecting reset to wrs. Code common for wrpc
    and wrs is placed in system_checks.c and .h. Work is based on following
    commits in wrc_main.c:
    1704a668 main: check for stack overflow
    7836c39e Optionally detect reset and print a stack trace
    
    Additionally:
    --update Kconfig to have a possibility to select CHECK_RESET also for switch,
      not only for node as before
    --and _endram to ram-wrs.ld
    
    When "stack overflow" occurs then message is printed once every second.
    When reset occours then LM32 will print stack trace and reset once more.
    NOTE: I couldn't get spll to work after reset, for sure problem is in
          ad9516 init function, but not only there.
    Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
    da3da2d9
Name
Last commit
Last update
..
hw Loading commit data...
libwr Loading commit data...
std Loading commit data...
board-wrc.h Loading commit data...
board-wrs.h Loading commit data...
board.h Loading commit data...
endpoint.h Loading commit data...
flash.h Loading commit data...
gpio-wrs.h Loading commit data...
hal_exports.h Loading commit data...
i2c.h Loading commit data...
irq.h Loading commit data...
minic.h Loading commit data...
onewire.h Loading commit data...
pps_gen.h Loading commit data...
ppsi-wrappers.h Loading commit data...
ptpd_netif.h Loading commit data...
revision.h Loading commit data...
rxts_calibrator.h Loading commit data...
sdb.h Loading commit data...
sfp.h Loading commit data...
shell.h Loading commit data...
spll_defs.h Loading commit data...
storage.h Loading commit data...
syscon.h Loading commit data...
system_checks.h Loading commit data...
trace.h Loading commit data...
types.h Loading commit data...
uart-sw.h Loading commit data...
uart.h Loading commit data...
util.h Loading commit data...
w1.h Loading commit data...
wrc.h Loading commit data...