This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

External Jlink is not working

Hi all,

We have custom board which has On Board Jlink support with nRF52832 using STM32 chip(STM32F072CBT6).

We are able to flash and debug using the On Board Jlink.

Now we are planning to use external Jlink (Jlink 9.3) to flash and debug on nRF52832 Chip.

We have pulled out SWDIO, SWCLK, VTargetRef and Gnd pins on nRF52832 Chip and then connected to External Jlink (Jlink 9.3). 

With External Jlink, we are unable to connect to  nRF52832 Chip.and observed the issue "Cannot connect to target"

On segger embedde studio, if we try to connect we got an error - "Failed to connect to target, no Idcode detected"

Please find the attached log files for more details

Thanks in Advance

Regards,

Deepa

Jlink_Issue.zip

Parents Reply Children
  • Hi thanks for your response.

    Currently after connecting external jLink to pulled out pins. I am still able to use the on board jLink.

    Is there a chance that it is causing an issue?

    I suspect it after going through the following line from the wiki page,

    • Disconnect on board emulators or other peripherals which may interact on the target interface lines

    if so, do I need to disconnect only 4 lines e.g. CLK, DIO, GND, Vref or I should disconnect other peripheral also such as UART which is also connected to same line.

  • after connecting external jLink to pulled out pins. I am still able to use the on board jLink
    Is there a chance that it is causing an issue

    I'd say that's (almost) certain!

    Open mouth

    The SWD interface is not a bus - it is not designed to be shared!

    do I need to disconnect only 4 lines e.g. CLK, DIO, GND, Vref

    Assuming that those are the only lines that your "external jLink" uses - yes.

    (there are many different models of J-Link - some have more features than others)

    I should disconnect other peripheral also such as UART which is also connected to same line.

    What do you mean, "connected to same line" ?

    Take a look at the Nordic DK schematics to see how they do it ...

  • Take a look at the Nordic DK schematics to see how they do it

    Also, as you're using STM32, take a look at how ST do it on their Nucleo & Discovery boards - which also have an onboard debug probe (ST-Link, in their case), plus support for an external debugger ...

    This really isn't specific to Nordic - it's general SWD stuff.

Related