Posts by lj001

    I have a PineTime development kit which is a nRF52 chip. I can connect to it with a ST-Link using OpenOCD but not my JLink Plus Compact. I get the following message:

    LOG: J-Link RTT Viewer V7.80c: Logging started.
    LOG: Terminal 0 added.
    LOG: Connecting to J-Link via USB...
    LOG: Device "NRF52" selected.
    ERROR: Could not connect to target device.

    I am using the following connections:
    [Blocked Image: https://cdn.discordapp.com/attachments/62…754d6150c0d52e&]

    Which are supported by the PineTime Wiki Reprogramming the PineTime - PINE64:
    [Blocked Image: https://cdn.discordapp.com/attachments/62…1b8b65b65ca59&=]

    I am trying to power, program, and debug my pinetime devkit board using the seggar jlink through VS Code. I am using the PineTime DevKit.

    The battery is disconnected as the io, clk, gnd, and vcc are behind it and repacking it and charging it would be difficult if I have to do it regularly. I've been using an STLink which can power it but I don't get print statements of debugging:

    I purchased the adapter because segger jlink only has 5.5v (read about the challenge here) and connected the 19 to the vcc based on this document stating: "The supply voltage to the target is provided through pin 19 of the debug cable.":

    I can connect to the board but cannot flash it using VS Code as I get an error:

    Code
    0002242:CRITICAL:__main__:Target type 'nrf52832' not recognized. Use 'pyocd list --targets' to see currently available target types. See <https://github.com/mbedmicro/pyOCD/blob/master/docs/target_support.md> for how to install additional target support.

    But I don't see the board being powered with the segger when I plug it in:

    While I do when I plug in the stlink:


    I don't know how to power the board with the segger so I can flash and debug it. What am I doing wrong?

    I have 4 connections on the board SWCIO, SWCLK, VCC, and GND. I currently use the ST-Link V2 which has all 4 pins, one of which is a 3.3v and supplies power to the board. I am trying to do the same with the jlink. If I move the VCC to the vtref from the 3.3v Adaptor pin (19) on the JLink where it is currently connected, the board will not have power. I did this previously and the board did not work. I have tried both:

    SWCIO (7), SWCLK (9), VCC (1 - Vtref), GND (4)
    SWCIO (7), SWCLK (9), VCC (19 - 3.3v), GND (4)
    Neither works.

    Ok. I have the adapter but now I'm worried about the battery attached to the board. It was fine with ST-Link v2, but I'm not sure it's ok with the Segger J-Link. Somebody said: "Just to make sure: If you leave the battery connected and supply voltage via the J-Link, the battery may backfeed power into the J-Link."

    Do I need to disconnect the battery from the board (cut the wires as it's a PineTime DK)?

    jlink is in /usr/bin/jlink
    jlinkexe is in /usr/local/bin/jlinkexe

    Ok. I ran jlinkexe vs jlink and got this:
    SEGGER J-Link Commander V7.88 (Compiled Apr 28 2023 08:30:53)
    DLL version V7.88, compiled Apr 28 2023 08:30:45

    Connecting to J-Link via USB...O.K.
    Firmware: J-Link V11 compiled Mar 28 2023 16:59:55
    Hardware version: V11.00
    J-Link uptime (since boot): 0d 00h 09m 34s
    S/N: xxxxxxxxx
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    USB speed mode: High speed (480 MBit/s)
    VTref=0.000V


    Type "connect" to establish a target connection, '?' for help
    J-Link>

    Can I power the board I am using (PineTime DK) from the Segger JLink Plus compact? I have the VTref connected to where the ST-Link V2 3.3v connector was. In that case it provided power and I'm not sure if I can configure the jlkink plus to supply the power.

    I see this link J-Link Interface Description (segger.com) which states what it does but not if it supplies power to the board:

    This is the target reference voltage. It is used to check if the target has power, to create the logic-level reference for the input comparators and to control the output logic levels to the target. It is normally fed from Vdd of the target board and must not have a series resistor

    I am struggling. Sorry. I run jlink in the terminal on my MacBook and get:

    Error: --output must be specified
    Usage: jlink <options> --module-path <modulepath> --add-modules <module>[,<module>...]
    Use --help for a list of possible options

    When I run with --help I get a list of options but really am not sure which ones to use.

    jlink --version is 11.0.7

    I ran this:
    nrfjprog -f NRF52 --recover

    And got this:
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 20 milliseconds with result -21
    [error] [ Worker] - Low voltage 0 detected in target device.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    Does that mean there is now power on the device? I was thinking JLink would provide the 3.3v I needed like ST-Link does.

    I just received my J-Link Plus compact and connected it to computer and PineTime DK, but in VS Code using nRF Connect I don't see it listed under Connected Devices. When I unplug it and plug in my nRF52DK and hit refresh the board appears. Whey doesn't the J-Link?

    I am using VS Code with nRF Connect and trying to connect to a PineTime with a J-Link Plus Compact, but am getting this message in vscode:

    The connections look like this, which all seem correct:

    I connected through the ncs desktop programmer app and got these message:

    19:16:05.842      Target device closed
    19:16:09.514      Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    19:16:09.515      JLink OB firmware version
    19:16:09.516      Device family
    19:16:09.517      Device version
    19:16:09.518      Board version
    19:16:09.519      Loading readback protection status for Application core
    19:16:10.440      Failed to load readback protection status: async task failure for id: 17894705655 msg: [jlink] LOW_VOLTAGE (Origin: "Error when running operation: protection-get")

    I have been able to flash the PineTime using OpenOCD and a ST-Link v2 but want debugging.