Hi,
if a stack is placed at beginning/end of SRAM then you can get a hard fault as soon as the stack overflows/underflow.
Or software can write a unique guard value to the SRAM area at the stack limit address. The software checks this address periodically. If guard value is overwritten, a stack overflow/underflow fault is reported by SW.
BR, Petr
Hi,
if a stack is placed at beginning/end of SRAM then you can get a hard fault as soon as the stack overflows/underflow.
Or software can write a unique guard value to the SRAM area at the stack limit address. The software checks this address periodically. If guard value is overwritten, a stack overflow/underflow fault is reported by SW.
BR, Petr