I"ve designed a custom board with the MDBT50Q module (part of the schematic below). When writing my program to Flash 0 and Ram Memory 2000 0000, the program won't load and will lock up, becoming unable to connect or program again. However, the board will suddenly boot up the program randomly after I power cycle (detach and reattach power) it enough times. When the board does boot up by chance after numerous power cycles, I can erase the program hence resetting the board. However, whenever I try to load a new piece of software into the board the exact same error happens (where it locks up and requires multiple power cycles until it becomes addressable again)
I've tried using both the internal and an external oscillator. I've configured the sdk_config and am writing to Flash 0 and Ram memory 2000 0000 with no soft device. Moreover, I've ordered multiple custom boards + modules each giving the same error.
Does anyone know what might cause this type of error?
What tools are you using to flash the nRF52840? If you are using nrfjprog, try to add the -r argument in order to soft reset the device after programming.
What SDK version and SDK examples are you testing ?
What is the power source, and what is the value of VDD ?
What is the voltage at P0.18/RESET ?
What programmer/debugger are you using ? J-Link from a nRF52840-DK ?
Sorry for the late reply. I'm using SDK 15.3.0 and custom code that just toggles an LED using nrf_gpio. The power source is a benchtop supply and VDD is 3.3. I'm using a Jlink and I have been adding -r to soft reset the device after programming. The Reset pin is 0 volts.