Hello,
I currently designing fault handling for a firmware for nrf52840 in SES for SDK16.
At line number 68 in the hardfault_handler_gcc.c, assuming a stack overflow happened and we want to reset the SP pointer, shouldn't BHI (Unsigned comparison gave higher) instruction be changed to BLH (Unsigned comparison gave lower or same), as the PSP will be lower if it overflows the limit, the stack being full descending in case of cortex m4.
Regards.