I'm using ncs 3.2.1 with a custom board (Holyiot-20046-v1.0). I used the "Create a new board" function in nRF Connect VSCODE to create the board file. I copied the Zephyr Blinky sample and added an alias for led0. All builds and run from the debugger. However, if I power cycle the board the firmware does not run and SWD is locked.
What is the correct procedure to setup the build so that the firmware does run and SWD is not locked?
Also, how can I set a breakpoint before the firmware is run so that I can debug the startup sequence and see why SWD is not being unlocked?
Additional Info:
I have tried using sys build explicitly with the following in sysbuild.conf: