Programmer can't read chip information after i download firmware with VSCode

Hi,

Programmer can't read chip information after i download firmware with VSCode.

Before download, Programmer can read chip information.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
16:24:18.572
Selecting device with the serial number 001050050051
16:24:21.640
Error: Failed with exit code 1. Failed to device info one or more devices: * 1050050051: [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Operation device-info failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).
16:24:21.640
Selected device with the serial number 001050050051
16:24:21.641
Using nrfutil device to communicate with target via JLink
16:24:24.848
Reading readback protection status for Application core
16:24:24.848
Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1)
16:24:24.990
Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).
16:24:24.990
Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Tool : Visual studio code(recently version)
Example code : Bluetooth LE Uart service
Downloding tool : nrf5340dk board
Target Board : Custom board(nrf52832)
Thanks for helping
Parents
  • Hello,

    Which version of NCS you are using?

    When using an nRF5340DK to program your custom nRF52832 board:
    1. Make sure you've properly connected the programming interface between the boards
    2. Verify that VDD_nRF and VTG are joined so the programmer knows there's power on the external board

    You can check this Programming an external board

    After this if still the problem exists, you can disable the DCDC by setting CONFIG_BOARD_ENABLE_DCDC=n and can try to program to check if it works.

Reply
  • Hello,

    Which version of NCS you are using?

    When using an nRF5340DK to program your custom nRF52832 board:
    1. Make sure you've properly connected the programming interface between the boards
    2. Verify that VDD_nRF and VTG are joined so the programmer knows there's power on the external board

    You can check this Programming an external board

    After this if still the problem exists, you can disable the DCDC by setting CONFIG_BOARD_ENABLE_DCDC=n and can try to program to check if it works.

Children