Can,t flash nRF52832 custom board using nrf connect vscode extension

Can,t flash nRF52832 custom board using nrf connect vscode extension

im trwing to use nRFconnect for my project, im using fade_led from example and got this error

i try run the "nrfjprog --program 'c:\Users\MIkhwanD\fade_led\build\zephyr\zephyr.hex' --sectoranduicrerase --verify -f NRF52 --snr 4294967295" with -- log to get the log

[2025-Feb-12 13:50:04] [debug] --------------------------------------------------------------------------------
[2025-Feb-12 13:50:04] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --program c:\Users\MIkhwanD\fade_led\build\zephyr\zephyr.hex --sectoranduicrerase --verify -f NRF52 --snr 4294967295 --log 
[2025-Feb-12 13:50:04] [debug] nrfjprog version 10.24.2 external
[2025-Feb-12 13:50:04] [debug] --------------------------------------------------------------------------------
[2025-Feb-12 13:50:04] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
[2025-Feb-12 13:50:04] [ info] Library loaded, loading member functions.
[2025-Feb-12 13:50:04] [ info] Member functions succesfully loaded.
[2025-Feb-12 13:50:04] [debug] [ Client] - open
[2025-Feb-12 13:50:04] [debug] [ Client] - start
[2025-Feb-12 13:50:04] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence b9af89c1-2a98-46ef-b56b-9ff5414dd9ae.

[2025-Feb-12 13:50:04] [trace] [ Client] - Command open executed for 65 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [ Client] - config
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2025-Feb-12 13:50:04] [trace] [ Client] - Command config executed for 16 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [  JLink] - Logger sink registered in JLink logger
[2025-Feb-12 13:50:04] [debug] [  nRF52] - open
[2025-Feb-12 13:50:04] [debug] [  nRF52] - just_check_family
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - open_dll
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2025-Feb-12 13:50:04] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLink_x64.dll.
[2025-Feb-12 13:50:04] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2025-Feb-12 13:50:04] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - Set batch mode
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - dll_version
[2025-Feb-12 13:50:04] [ info] [SeggerBackend] - Segger dll version 8.12.e loaded.
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command open executed for 8 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [  nRF52] - config
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - enum_emu_snr
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command config executed for 3 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [ Client] - enum_emu_snr
[2025-Feb-12 13:50:04] [trace] [ Client] - Command enum_emu_con_info executed for 14 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [ Client] - connect_to_emu_with_snr
[2025-Feb-12 13:50:04] [debug] [  nRF52] - enum_emu_con_info
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - enum_emu_con_info
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command enum_emu_con_info executed for 6 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [  nRF52] - connect_to_emu_with_snr
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - ---just_get_num_emus
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - Segger logging enabled.
[2025-Feb-12 13:50:04] [trace] [  JLink] - Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
[2025-Feb-12 13:50:04] [trace] [  JLink] - Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
[2025-Feb-12 13:50:04] [trace] [  JLink] - Hardware: V8.00
[2025-Feb-12 13:50:04] [trace] [  JLink] - S/N: 4294967295
[2025-Feb-12 13:50:04] [trace] [  JLink] - OEM: SEGGER
[2025-Feb-12 13:50:04] [trace] [  JLink] - Feature(s): RDI,FlashDL,FlashBP,JFlash,GDB
[2025-Feb-12 13:50:04] [trace] [  JLink] - Bootloader: (FW returned invalid version)
[2025-Feb-12 13:50:04] [trace] [  JLink] - TELNET listener socket opened on port 19021
[2025-Feb-12 13:50:04] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2025-Feb-12 13:50:04] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
[2025-Feb-12 13:50:04] [trace] [  JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
[2025-Feb-12 13:50:04] [trace] [  JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
[2025-Feb-12 13:50:04] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V8.12e " 
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 58.425ms returns "O.K."  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_Lock()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.001ms returns 0x01  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.000ms returns 0x00  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns 0x00  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.012ms returns 0  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 1.134ms returns 0x00  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSpeedInfo()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - 4000000 Hz / n, n >= 1
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.008ms   
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 4000kHz
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_SetSpeed(2000)  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.137ms   
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSpeed()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.008ms returns 2000  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - SWD clock set to 2000kHz
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.004ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_GetSN()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.003ms returns -1  
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_HasError()  
[2025-Feb-12 13:50:04] [trace] [  JLink] - - 0.027ms   
[2025-Feb-12 13:50:04] [trace] [  JLink] - JLINK_Close()  
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [error] [ Worker] - An unknown error.
[2025-Feb-12 13:50:04] [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 124 milliseconds with result -102
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 107 milliseconds with result -102
[2025-Feb-12 13:50:04] [debug] [  nRF52] - close
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - close
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - disconnect_from_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Feb-12 13:50:04] [debug] [SeggerBackend] - Segger Backend closed.
[2025-Feb-12 13:50:04] [debug] [  nRF52] - nRF family DLL closed
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command close executed for 29 milliseconds with result 0
[2025-Feb-12 13:50:04] [trace] [ Client] - Command close executed for 44 milliseconds with result 0
[2025-Feb-12 13:50:04] [debug] [ Client] - terminate
[2025-Feb-12 13:50:04] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2025-Feb-12 13:50:04] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2025-Feb-12 13:50:04] [trace] [ Worker] - Executed 6 commands for 153 milliseconds
[2025-Feb-12 13:50:04] [debug] [ Client] - Worker process exited with code: 0
[2025-Feb-12 13:50:04] [debug] [ Client] - Worker process exited with code: 0
[2025-Feb-12 13:50:04] [debug] [ Client] - Child process terminated with result 0
[2025-Feb-12 13:50:04] [trace] [ Client] - Executed 6 commands for 263 milliseconds
[2025-Feb-12 13:50:04] [debug] [ Client] - terminate


im using this build configuration

Notes :

I am able to flash my board using Segger Embedded Studio and run the ble_app_blinky_pca10040_s132 example.

Additionally, I have successfully connected to and erased the chip using J-Link Commander V8.12e.

Related