[SOLVED] Defective J-Link?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Defective J-Link?

    Hi,

    I have a J-Link Pro that might be defective.

    I'm working with STM32F427. When I try to connect to the board I get the error "Cannot connect under reset". I've tried it with several of our boards, all with no success.

    I'm using the latest version of the Segger drivers, 5.10f, and made sure to update the firmware of the J-Link.

    When trying to connect to the boards with J-Link-ARM that I have, all connections are successful.

    Any ideas?

    Maor
  • Hi Maor,

    thanks for you inquiry.

    Could your provide us with a complete J-Link logfile of a failed connection attempt?
    Log output can be enabled like as follows:
    • Open a connection to J-Link, e.g start J-Link Commander
    • In J-Link Control Panel: (Click the J-Link symbol located in the notification / tray area in order to open J-Link Control panel)
    • Open the tab "Settings"
    • Next to the field "Log file" check "Override" and click "..." in order to choose a log file path.

    This is also described in UM8001 Chapter 5 "Working with J-Link and J-Trace", Section 5.7 "J-Link control panel" .

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Here's the log file:

    J-Link V5.10f Log File
    DLL Compiled: Dec 22 2015 14:24:20
    Logging started @ 2016-01-04 13:34

    T0F5C 000:000 JLINK_SelectUSB(Port = 0) returns 0x00 (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_SetEndian(ARM_ENDIAN_LITTLE) returns 0x00 (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_ResetPullsTRST(OFF) (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_EnableLog(...) (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_SetErrorOutHandler(...) (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_SetWarnOutHandler(...) (0000ms, 0000ms total)
    T0F5C 000:000 JLINK_Open()
    Firmware: J-Link Pro V4 compiled Dec 18 2015 17:53:35
    Hardware: V4.00
    S/N: 174301639
    Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB returns O.K. (0269ms, 0269ms total)
    T0F5C 000:270 JLINK_ExecCommand("ProjectFile = C:\projects\Spitfire\Embedded\Dev\FEC\FEC2\settings\FEC2_Debug.jlink", ...) returns 0x00 (0006ms, 0275ms total)
    T0F5C 000:279 JLINK_ExecCommand("device = STM32F427ZG", ...)Device "STM32F427ZG" selected. returns 0x00 (0006ms, 0282ms total)
    T0F5C 000:286 JLINK_GetDLLVersion() returns 51006 (0000ms, 0282ms total)
    T0F5C 000:286 JLINK_GetCompileDateTime() (0000ms, 0282ms total)
    T0F5C 000:286 JLINK_GetFirmwareString(...) (0000ms, 0282ms total)
    T0F5C 000:287 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0001ms, 0283ms total)
    T0F5C 000:288 JLINK_SelectDeviceFamily(14) (0000ms, 0283ms total)
    T0F5C 000:288 JLINK_SetSpeed(1000) (0001ms, 0284ms total)
    T0F5C 000:289 JLINK_ExecCommand("SetResetType = 0", ...) returns 0x00 (0000ms, 0284ms total)
    T0F5C 000:289 JLINK_ExecCommand("SetResetPulseLen = 200", ...) returns 0x14 (0000ms, 0284ms total)
    T0F5C 000:289 JLINK_SetResetDelay(0) (0000ms, 0284ms total)
    T0F5C 000:289 JLINK_ResetPullsRESET(ON) (0000ms, 0284ms total)
    T0F5C 000:289 JLINK_Reset() >0x108 TIF> >0x108 TIF>STM32 (connect): Can not attach to CPU. Trying connect under reset. >0x108 TIF> >0x108 TIF>
    ***** Error: STM32: Connecting to CPU via connect under reset failed. >0x108 TIF> >0x108 TIF>STM32 (connect): Can not attach to CPU. Trying connect under reset. >0x108 TIF> >0x108 TIF>
    ***** Error: STM32: Connecting to CPU via connect under reset failed.
  • Hi Maor et all,

    further communication regarding this case will be done via E-Mail.

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.