Hi People, I hope I can get help here or get pointed to a right forum where this can be answered.
I am using u-blox NINA-B306 (based on nRF52840) in one of my custom made circuit boards. To flash it, I am using ST-Link v2 (as it supports SWD). I want this custom PCB to be programmable over USB. Working on the Arduino Platform, I use Arduino IDE to burn bootloader to nRF52840. To burn bootloader, Arduino IDE makes use of OpenOCD. Bootloader burns successfully on the device and I get a COM port in Arduino IDE which can be used to flash any Arduino program on nRF5840.
Everything works fine until the device is power cycled. If power-cycled, program doesn't start. If the ST-Link v2 is still connected to nRF52840, program starts on the power cycle but if ST-Link is not connected, program won't start. What am I doing wrong here?