Hello,
I am trying the nRF52 DK but I am struggling to make an upload on it.
My first goal is just to make the led1 blink.
How could I troubleshoot the upload.
Each time I tried an upload I got the following message :
JLink.exe -device nRF52832_xxAA -speed 4000 -if swd -autoconnect 1 -NoGui 1 -CommanderScript "C:\Users\clement.deligeon\Documents\PlatformIO\Projects\arduino-tutorial\.pio\build\nrf52_dk\upload.jlink" SEGGER J-Link Commander V6.88b (Compiled Nov 27 2020 15:45:43) DLL version V6.88b, compiled Nov 27 2020 15:44:11 J-Link Command File read successfully. Processing script file... J-Link connection not established yet but required for command. Connecting to J-Link via USB...O.K. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00 Hardware version: V1.00 S/N: 682973040 License(s): RDI, FlashBP, FlashDL, JFlash, GDB VTref=3.300V Target connection not established yet but required for command. Device "NRF52832_XXAA" selected. Connecting to target via SWD InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end Cannot connect to target. Target connection not established yet but required for command. Device "NRF52832_XXAA" selected. Connecting to target via SWD InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end Cannot connect to target. Target connection not established yet but required for command. Device "NRF52832_XXAA" selected. Connecting to target via SWD InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end InitTarget() start InitTarget() end Cannot connect to target. Script processing completed.
During upload the led is blinking so the cable looks okay to me.
I was thinking that the issue could be bootloader missing because the card was used before by someone else.
So I don't know its current state.
Any idea how I could troubleshot the board ?
Also, while doing the basic test by following get started Irealized that step 5 wasn't working the button doesn't change which led is pulsating because led 1 to 4 are off.
www.nordicsemi.com/.../Getting-Started
Jlink is well detected.
I am using platformio IDE and I followed their tutorial : docs.platformio.org/.../arduino_debugging_unit_testing.html
Edit 04/05/2021
I try using Segger embedded following this tutorial : https://www.youtube.com/watch?v=YZouRE_Ol8g&t=148s
I get the same error than with platformio. Capture below :