Skip to main content
Visitor II
June 22, 2019
Solved

The SWD/JTAG can not connect with STM32MP157

  • June 22, 2019
  • 3 replies
  • 2405 views

Hi, I use stlink v2 connect my custom board. The stm32cubeprogrammer shows error message when I use SWD or JTAG mode. The stlink version is V2J33S7.

No STM32 target found!

And I also tested with DK2 board. Could you give me some hints about it?

    This topic has been closed for replies.
    Best answer by PatrickF

    Hello,

    With STM32MP1, ST-Link is not used for CubeProgrammer, you should use port=usb1 (Altough UART VCP thru ST-Link, i.e. port=COMx or ttyx could be used, but due to amount of programmed data, it is barely used).

    Host USB (PC) should be connected to STM32MP15x OTG_HS_DP/DM pins (CN7 on the DK2 board).

    3 replies

    SChen.11Author
    Visitor II
    June 23, 2019
     sudo ~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=swd
     -------------------------------------------------------------------
     STM32CubeProgrammer v2.0.0 
     -------------------------------------------------------------------
     
    ST-LINK SN : 066CFF485450827867143917
    ST-LINK FW : V2J33M0
    Voltage : 3.24V
    Error: No STM32 target found!

    Above is using command line tool to connect stlink on dk2 board.

    PatrickFAnswer
    Technical Moderator
    June 24, 2019

    Hello,

    With STM32MP1, ST-Link is not used for CubeProgrammer, you should use port=usb1 (Altough UART VCP thru ST-Link, i.e. port=COMx or ttyx could be used, but due to amount of programmed data, it is barely used).

    Host USB (PC) should be connected to STM32MP15x OTG_HS_DP/DM pins (CN7 on the DK2 board).

    SChen.11Author
    Visitor II
    June 24, 2019

    I just use stlink to test the SWD/JTAG port is correct connect with stm32mp1 processor. So, I use another stlink v2 through swd connect my board. It's also can not recognised. Which tool I can use to verify the swd or jtag port on stm32mp1 ?

    Technical Moderator
    June 24, 2019

    Currently, the only way to test if SWD/JTAG if working is to do an M4 'engineering mode' debug session using SW4STM32.

    Explorer II
    February 3, 2020

    same problem here. Can not connect ST-Link V3 to SWD/JTAG with CubeProgrammer or with CubeIDE. SChen.11 did you find a solution?​

    Technical Moderator
    February 4, 2020

    Hi @Stefan Meyre​ 

    Could you please precise further your context where you use ST-Link V3 ? ( ST MPU board only support V2)

    As a reminder for MPU, CubeProgrammer can not use swd to communicate but only USB.

    Olivier