I've been having several issues with the nRF52840 so far:
Issue 1:
When trying to flash an nRF52840 with NCP firmware using a Segger JLink, I connected the SWDIO and SWCLK pins on the device to the JLink, and powered the device over my computer's USB connection. I used Segger Embedded Studio to flash the firmware, but it failed to flash and seemingly erased the chip. I can no longer put the device into firmware replacement mode by pushing the reset button on the chip. I tried to connect to the device using JLinkExe, but this doesn't work and I get the following error message:
Device "NRF52840_XXAA" selected.
Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
****** Error: DAP error while reading DP-Ctrl-Stat register.
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
Cannot connect to target.
The speed is set to 500KHz and the device is set as NRF52840_XXAA.
Issue 2:
Device "NRF52840_XXAA" selected.
Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
****** Error: DAP error while reading DP-Ctrl-Stat register.
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
Cannot connect to target.
The speed is set to 500KHz and the device is set as NRF52840_XXAA.
Issue 2:
I also tried to get the OpenThread Border Router working using nRFConnect, which was able to flash the devices. I was able to launch the Border Router successfully. I don't know if the Thread Network between the NCP and the external SoC (Thread CLI device) worked or noe because when I tried to ping the address for 8.8.8.8 (Google Public DNS) which was 64:ff9b::808:808 it did not work. I was also unable to ping ipv6.google.com (2607:f8b0:4005:809::200e).
Does someone know what is wrong in these scenarios? Thank you.