[ABANDONED] J-Link cannot connect to target

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

  • [ABANDONED] J-Link cannot connect to target

    Dear Admin

    I am stuck in this problem and cannot figure out what is the problem.

    I am actually using STM32F446RE Nucleo board to flash an stm32f446me(/ze) controller using the SWD connector interface.

    I have installed J-Link and when i execute this in terminal I get this output:

    americium:~ umarahmad$ /Applications/SEGGER/JLink_V635g/JLinkExe
    SEGGER J-Link Commander V6.35g (Compiled Oct 19 2018 17:36:50)
    DLL version V6.35g, compiled Oct 19 2018 17:36:40

    Connecting to J-Link via USB...O.K.
    Firmware: J-Link STLink V21 compiled Jun 26 2017 10:35:16
    Hardware version: V1.00
    S/N: 773535799
    VTref=3.300V


    Type "connect" to establish a target connection, '?' for help

    Now afterward when I try to connect with my device and use the connect command, i get this

    J-Link> device stm32f446ze
    J-Link>connect
    Please specify target interface:
    J) JTAG (Default)
    S) SWD
    T) cJTAG
    TIF> S
    Specify target interface speed [kHz]. <Default>: 4000 kHz
    Speed>
    Device "STM32F446ZE" selected.

    Connecting to target via SWD
    STM32 (connect): Can not attach to CPU. Trying connect under reset.
    STM32 (connect): Can not attach to CPU. Trying connect under reset.

    ****** Error: STM32: Connecting to CPU via connect under reset failed.

    STM32 (connect): Can not attach to CPU. Trying connect under reset.
    STM32 (connect): Can not attach to CPU. Trying connect under reset.

    ****** Error: STM32: Connecting to CPU via connect under reset failed.

    Cannot connect to target.



    I have also tried using the /Applications/SEGGER/JLink_V634h/JLinkSTM32Exe utility and this is what i get from that:

    americium:~ umarahmad$ /Applications/SEGGER/JLink_V634h/JLinkSTM32Exe
    SEGGER J-Link Unlock tool for STM32 devices
    Compiled Oct9 2018 15:49:24
    (c) 2009-2015 SEGGER Microcontroller GmbH, segger.com
    Solutions for real time microcontroller applications

    This program is designed to reset the option bytes of a STM32 device to their factory settings. If read protection of the device is enabled, reset the option bytes will cause a mass erase.

    Options:
    [0] Exit
    [1] STM32F0xxxx
    [2] STM32F1xxxx
    [3] STM32F2xxxx
    [4] STM32F3xxxx
    [5] STM32F4xxxx
    [6] STM32F72xxx, STM32F73xxx
    [7] STM32F74xxx, STM32F75xxx
    [8] STM32F76xxx, STM32F77xxx
    [9] STM32L0xxxx
    [10] STM32L1xxxx
    [11] STM32L4x6xx
    Please select the correct device family: 5
    Connecting to J-Link via USB...O.K.
    Using SWD as target interface.
    Target interface speed: 1000 kHz.
    VTarget = 3.300V
    Reset target...O.K.
    Reset option bytes (may take app. 20 seconds)...Memory read failed.
    Unlock not successful.
    Press any key to exit.

    please help

    I also tried using the Jlink, please see attachments
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.
    Do you have any application running on the target device that might disable the debug interface e.g. with sleep modes or WFI instructions?

    Best regards,
    Nino
    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.