I have an odd issue with an older nRF52840-DK, I can flash and read memory from the device just fine but no matter what version of NCS I use, it will not execute whatever gets flashed. However if I start a debugging session in VSCode the program executes just fine, using the blinky sample as a test software.
I can only imagine that in some past project something got flashed that set some wrong UICR values or disabled the DCDC etc.
I already did --eraseall and --recover with nrfjprog but that did not change anything. What could be going wrong here and how can I recover from this?