connection fail via swd with jlink

We're using nrf52833 and our target board is already running our program well.

Then 

we'd like to flash by using Jlink SWD programmer.

So, we connected vref, gnd, swdio swclk pin between our target and jlink's 20 pin connector by wire.

When we use jlink flasher program, we got the following errors.


Connecting to target via SWD
InitTarget() start
InitTarget()end
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
InitTarget() start
InitTarget() end
RESET (pin15) high, but should be low. Please check target hardware.
RESET (pin15) high, but should be low. Please check target hardware.
Cannot connect to target.

It seems errors in connection nrf52833 and jlink.

Currently, our target don't use RESET pin (p0.18) after looking into our schematic.

please check and advice us.

Parents
  • Hello,

    From your response, I understand that the issue occurs when you use an external debugger, but there is no issue when using the nRF52833 DK as the debugger. Please correct me if I’m wrong.

    If that is the case, the problem is likely related to the connection between your J-Link debugger and your custom board. Could you please ensure that the power supply is stable while using the external debugger?

    From the last shared logs, it appears that the target device is not being detected.

    Kind Regards,

    Abhijith

  • Hi Menon,

    Yes,

    the issue occurs when you use an external j-link debugger, but there is no issue for programming when using the nRF52833 DK as the debugger. 

    However, there is still the issue for debugging for using RTT viewer even when using the nRF52833 DK as the debugger.

    So,

    I have looked more into the following link referring to nRF52832 DK. "docs.nordicsemi.com/.../ext_programming_support_P20.html"

    Here, it says the more connection for reset pin ,apart from pins connection of swclk, swdio, vcc and gnd.

    So,

    can you tell me about the pin connections between our external target board and nRF52832 DK debugger.

    Then the next time after solving it, I may have to solve issues between our board and j-link external debugger. 

    Thanks,

Reply
  • Hi Menon,

    Yes,

    the issue occurs when you use an external j-link debugger, but there is no issue for programming when using the nRF52833 DK as the debugger. 

    However, there is still the issue for debugging for using RTT viewer even when using the nRF52833 DK as the debugger.

    So,

    I have looked more into the following link referring to nRF52832 DK. "docs.nordicsemi.com/.../ext_programming_support_P20.html"

    Here, it says the more connection for reset pin ,apart from pins connection of swclk, swdio, vcc and gnd.

    So,

    can you tell me about the pin connections between our external target board and nRF52832 DK debugger.

    Then the next time after solving it, I may have to solve issues between our board and j-link external debugger. 

    Thanks,

Children
Related