This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRFStudio can not connect to J-Link

I want to bring up my own new board, but the nRFStudio can not connect to the J-Link, please check the picture. I connect 4 lines from board to J-Link, including VCC, GND, SWDIO, SWCLK, and I have already checked the signal of oscillator (16MHz), everything is fine, I do not know what I should do now, please help. P.S.If I click the Recover button, the ERROR dialog showed.

image description image description image description image description

  • Can you try powering the board from a 3.0 or 3.3v supply instead of the battery and see if it makes a difference?

  • Thanks. I tried a new board but there is no difference. I have removed the 12k resistor and try to power on with 3.3v, still can not work. It's very strange, any ideas? P.S. I'm not sure if the J-Link is Lite version and I post a new picture, please check it.

  • in the latest picture you posted it seems JLink hasn't been told what kind of board and what interface to look on, which means it doesn't send the right sequence to the nrf51 and may not connect.

    Why not try from the command line after closing nrfStudio (so it releases the segger).

    cd c:\Program Files (x86)\SEGGER\JLink_V498b
    .\JLink.exe -if swd -device nrf51
    

    You may have to change the path if your JLink software is somewhere else, that's where it is on my windows emulator. If that doesn't work with a powered, operational board, I'd go back and check the pins and connections all over again.

  • Thanks very much, it works now. But there is a new question, the J-Link can just use the slow clock, please see the new picture, maybe the layout has something wrong? This design just uses one 16M oscillator.

  • Unlikely anything to do with the 16MHz oscillator. JLink tries to connect with a default speed, if it fails it tries at the slowest speed which is 4KHz. You can specify the speed with another command line

    -speed 100
    

    for instance selects 100KHz. You can try different speeds to see what you can connect with.

    I would think if JLink can't connect at a good speed then you have some board problems, stray capacitance on the SWD lines, not really sure, not my area of expertise.

Related