SIGTRAP Trace/breakpoint trap to port.c

Trying to run debugger on code that compiles and runs in hardware. But the debugger always goes to a line in the ports.c file instead of main. Stuck here , and does not proceed with debugger stepping.

platform = nordicnrf52
board = adafruit_feather_nrf52840_sense
framework = arduino
debug_tool = jlink
upload_protocol = jlink

https://github.com/TSemNew/SzG_14

Sorry. Clueless on how to proceed.

Known issue, reported in Hang Starting nRF52840 Feather Express Under Segger Debugger - #8 by geeksville with workaround described in Noob JLink Edu + Arduino Nano 33 IOT + PIO 5.01 Debugger woes – exact cause still unknown, though. Speculations say it’s something to do with the bootloader or the USB stack. Also I think someone talked about a easier workaround, just hitting the “Restart” icon in the debug bar.

I did as suggested and implemented the adding the gdbint file in root with the restart.
The “restart” seems to reset the target, but still get stuck at same places , even wen using the simple skeletal blink code.
Same results.
Any other ideas ?

.