nRF52840-DK only executing while debugging

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?

Parents
  • Hello,

    The symptom you describe is typically seen on custom board designs that don't include the optional 32 kHz crystal or DCDC inductors but have been programmed with a FW image that tries to use the crystal oscillator or DCDC regulator. I would not expect to see this on a DK. As a test, please try to add CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to the project configuration (prj.conf) to see if that changes anything. This changes the clock source from the default 32KHz crystal oscillator to the internal RC oscillator of the chip.

    Best regards,

    Vidar

  • It looks like there was some creeping hardware failure, after powering it up again not even the programmer comes up. Power is there but none of the chips are functional. I guess this is a dead board.

  • Likely only needs to apply "Interface MCU firmware" again. Note: Website search can't currently find it, its in the downloads for the specific DK.

    On older DKs this gets de-activated every time you hold "Reset" button down during power-on sequence and will require a re-upload.

    Big indication is "no led lights up" when you connect the USB cable.

Reply Children
Related