[ABANDONED] Can't connect to M4 core of STM32MP1 (STM32MP157)

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

  • [ABANDONED] Can't connect to M4 core of STM32MP1 (STM32MP157)

    I can successfully connect to both A7 cores of my STM32MP157 board with either of these commands:

    Source Code

    1. JLinkGDBServer -device STM32MP15xx_A7_0_DualFlash
    2. JLinkGDBServer -device STM32MP15xx_A7_1_DualFlash


    However, I cannot connect to the M4 core of the processor. If I attempt to default to the JTAG interface, it just says "ERROR: Could not connect to target" — if I connect via SWD, it shows more promise:

    Source Code

    1. $ JLinkGDBServer -device STM32MP15xx_M4_DualFlash -if swd
    2. SEGGER J-Link GDB Server V6.80d Command Line Version
    3. JLinkARM.dll V6.80d (DLL compiled Jun 26 2020 17:19:40)
    4. Command line: -device STM32MP15xx_M4_DualFlash -if swd
    5. -----GDB Server start settings-----
    6. GDBInit file: none
    7. GDB Server Listening port: 2331
    8. SWO raw output listening port: 2332
    9. Terminal I/O port: 2333
    10. Accept remote connection: yes
    11. Generate logfile: off
    12. Verify download: off
    13. Init regs on start: off
    14. Silent mode: off
    15. Single run mode: off
    16. Target connection timeout: 0 ms
    17. ------J-Link related settings------
    18. J-Link Host interface: USB
    19. J-Link script: none
    20. J-Link settings file: none
    21. ------Target related settings------
    22. Target device: STM32MP15xx_M4_DualFlash
    23. Target interface: SWD
    24. Target interface speed: 4000kHz
    25. Target endian: little
    26. Connecting to J-Link...
    27. J-Link is connected.
    28. Firmware: J-Trace PRO V2 Cortex compiled Jun 9 2020 13:39:29
    29. Hardware: V2.00
    30. S/N: 932000281
    31. Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    32. Checking target voltage...
    33. Target voltage: 3.31 V
    34. Listening on TCP/IP port 2331
    35. Connecting to target...
    36. WARNING: Identified core does not match configuration. (Found: Cortex-M0, Configured: Cortex-M4)
    37. WARNING: CPU could not be halted
    38. Halting target device failed. Trying again with reset
    39. WARNING: CPU could not be halted
    40. WARNING: CPU could not be halted
    41. WARNING: CPU could not be halted
    42. ERROR: Failed to halt CPU.
    43. WARNING: CPU could not be halted
    44. Failed to halt target device on connect
    45. ERROR: Could not connect to target.
    46. Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
    47. Shutting down...
    48. Could not connect to target.
    49. Please check power, connection and settings.
    Display All
    I also tried upgrading to the latest version of J-Link software (6.86d), but that also didn't fix things (and ended up presenting a different error):

    Source Code

    1. Connecting to target...
    2. Halting target device failed. Trying again with reset
    3. ERROR: Failed to halt CPU.
    4. Failed to halt target device on connect
    5. ERROR: Could not connect to target.
    6. Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
    7. Shutting down...
    8. Could not connect to target.
    Any ideas what's going on? I was wondering if there was some sort of clock gating / power gating thing I had to enable on the Linux side of things to get the processor to work, but I didn't see anything from ST about this.
  • Hi,
    Thank you for your inquiry.

    Unfortunately, we were not able to recreate this issue:


    Setup:
    - J-Link Plus V10
    - J-Link GDB Server v6.86d
    - STM32MP15X-EVAL evaluation board (STM32MP157AAA3).

    Could you please retry with the latest J-Link Version? You can download it here.
    Are you using an evaluation board or custom hardware?
    If evaluation board, which one? If custom hardware, are you able to reproduce this on an evaluation board?

    Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File

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