[SOLVED] STM32 JLink Help

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

  • [SOLVED] STM32 JLink Help

    Howdy,

    I have a JLink Plus and Edu that are behaving differently with STM32G474RE Nucelo boards and the issue appeared on Monday. The Plus has firmware from January 30th, 2023 and the Edu has firmware from January 24th, 2024. I can use JLinkExe (v7.94b) and the Plus to connect to the STM32 using SWD. When trying the same approach with the Edu, the response is:

    Source Code

    1. SEGGER J-Link Commander V7.94b (Compiled Dec 13 2023 17:01:30)
    2. DLL version V7.94b, compiled Dec 13 2023 17:01:20
    3. Connecting to J-Link via USB...O.K.
    4. Firmware: J-Link EDU Mini V1 compiled Jan 24 2024 12:08:08
    5. Hardware version: V1.00
    6. J-Link uptime (since boot): 0d 00h 02m 11s
    7. S/N: 801022839
    8. License(s): FlashBP, GDB
    9. USB speed mode: Full speed (12 MBit/s)
    10. VTref=3.298V
    11. Type "connect" to establish a target connection, '?' for help
    12. J-Link>connect
    13. Please specify device / core. <Default>: STM32G474RE
    14. Type '?' for selection dialog
    15. Device>
    16. Please specify target interface:
    17. J) JTAG (Default)
    18. S) SWD
    19. T) cJTAG
    20. TIF>s
    21. Specify target interface speed [kHz]. <Default>: 4000 kHz
    22. Speed>100
    23. Device "STM32G474RE" selected.
    24. Connecting to target via SWD
    25. InitTarget() start
    26. SWD selected. Executing JTAG -> SWD switching sequence.
    27. Error: Failed to initialized DAP.
    28. Can not attach to CPU. Trying connect under reset.
    29. SWD selected. Executing JTAG -> SWD switching sequence.
    30. Error: Failed to initialized DAP.
    31. Connecting to CPU via connect under reset failed.
    32. InitTarget() end - Took 424ms
    33. Connect failed. Resetting via Reset pin and trying again.
    34. InitTarget() start
    35. SWD selected. Executing JTAG -> SWD switching sequence.
    36. Error: Failed to initialized DAP.
    37. Can not attach to CPU. Trying connect under reset.
    38. SWD selected. Executing JTAG -> SWD switching sequence.
    39. Error: Failed to initialized DAP.
    40. Connecting to CPU via connect under reset failed.
    41. InitTarget() end - Took 426ms
    42. Cannot connect to target.
    Display All
    The development computer is a Macbook Pro with an M2. Is there a way to roll-back firmware in JLink Confuration to try and troubleshoot if the firmware is the issue or the device itself? Please let me know if there is other information I can provide.

    Thanks in advance.
  • We think we found the problem: a bad 10-pin ribbon cable from the JLink to the STM32. We were able to invoke a failure with the JLink Plus using the ribbon cable from the Edu Mini. Hope this helps someone someday!