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,

    Which SDK and version are you using to build your application? Take a look at this old DevZone thread discussing a similar issue. Please see if this discussion has any relevance to your issue.

    How did you program your first software? You mentioned that your program is running well. I assume this is a custom application. Have you tried any applications inside the SDK, and do they produce the same issue?

    Kind Regards,
    Abhijith

  • I don't know which SDK and version. but I used "s113_nrf52_7.2.0_softdevice.hex" in our project starting on 2021.01.27.
    and I cannot open old DevZone thread you suggested before. please check this and again give me a link.


    In addition, our program is a old custom application and already on mass production. However, there are problems on our project so I am involved with it, currently. so I don't know the development history well. a

    Anyway, it's my conditions for this project. 

    Our old project is running well under the DFU for fw update using nRF connect for mobile app.

    Here, apart from DFU, I'd like to debug our target via jlink debugger (swd) and see the RTT logs from our target.

    Then RTT viewer give me the error.

    The error log are as followings, again:

    LOG: J-Link RTT Viewer V7.94e: Logging started.
    LOG: Connecting to J-Link via USB...
    LOG: Device "NRF52833_XXAA" selected.
    LOG: InitTarget() start
    LOG: InitTarget() end - Took 2.52ms
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: Failed to attach to CPU. Trying connect under reset.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: Connect fallback: Reset via Reset pin & Connect.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: InitTarget() start
    LOG: InitTarget() end - Took 3.22ms
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    ERROR: Could not connect to target device.

    This error seems to be same when not connected with target device with jlink debugger.

    Then please help me how to solve this problem.

Reply
  • I don't know which SDK and version. but I used "s113_nrf52_7.2.0_softdevice.hex" in our project starting on 2021.01.27.
    and I cannot open old DevZone thread you suggested before. please check this and again give me a link.


    In addition, our program is a old custom application and already on mass production. However, there are problems on our project so I am involved with it, currently. so I don't know the development history well. a

    Anyway, it's my conditions for this project. 

    Our old project is running well under the DFU for fw update using nRF connect for mobile app.

    Here, apart from DFU, I'd like to debug our target via jlink debugger (swd) and see the RTT logs from our target.

    Then RTT viewer give me the error.

    The error log are as followings, again:

    LOG: J-Link RTT Viewer V7.94e: Logging started.
    LOG: Connecting to J-Link via USB...
    LOG: Device "NRF52833_XXAA" selected.
    LOG: InitTarget() start
    LOG: InitTarget() end - Took 2.52ms
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: Failed to attach to CPU. Trying connect under reset.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: Connect fallback: Reset via Reset pin & Connect.
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    LOG: InitTarget() start
    LOG: InitTarget() end - Took 3.22ms
    LOG: RESET (pin 15) high, but should be low. Please check target hardware.
    ERROR: Could not connect to target device.

    This error seems to be same when not connected with target device with jlink debugger.

    Then please help me how to solve this problem.

Children
No Data
Related