On Sat, Aug 12, 2023 at 6:38 AM Tomas Vanek
<[email protected]> wrote:
> ...
> The part of openocd.cfg up to here is +- standard.
>
> The following part is a folklore added by zephyr project, which changes
> OpenOCD
> startup behaviour and gdb attach. TBH I see no reason why they need it for.
>
> $_CHIPNAME.cpu0 configure -event gdb-attach {
> echo "Debugger attaching: halting execution"
> gdb_breakpoint_override hard
> }
the default gdb-attach event is NOT empty, but contains "{ halt 1000 }" !
By overwriting it with a custom event, you MUST provide the "halt"
command required by GDB at attach.
Antonio