2019-06-22 7:29 AM
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?
Solved! Go to Solution.
2019-06-23 11:48 PM
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).
2019-06-22 8:56 PM
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.
2019-06-23 11:48 PM
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).
2019-06-24 12:00 AM
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 ?
2019-06-24 2:24 AM
Currently, the only way to test if SWD/JTAG if working is to do an M4 'engineering mode' debug session using SW4STM32.
2020-02-03 1:22 PM
same problem here. Can not connect ST-Link V3 to SWD/JTAG with CubeProgrammer or with CubeIDE. SChen.11 did you find a solution?
2020-02-04 1:28 AM
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