cancel
Showing results for 
Search instead for 
Did you mean: 

"No ST-LINK detected!!! please connect the ST-LINK and restart the session"

mdudhat
Associate II

Hi guys,

I am using the USB 2.0 port (in CDC mode),  based on STM32G474 microcontroller design project for the communication with PC. I am trying to debug/upload the project using the usb port but it shows the message like  "No ST-LINK detected!!! please conncet the ST-LINK and restart the session." 

I have tried to upgrade the st-link frimware from the help menu but it shows nothing in upgrade GUI (no st-link shows in device list). Currently i am using  version1.18.0 stm32cubeide. I also tried to upload the file using stm32CubeProgrammer tool but there also "no debug probe detected" in st-link mode. 

In fact usb port is communicating with the serial terminal (from serial  terminal to - microcontroller and vice a versa) after uploading the firmware in it using SWD interface.

Could you please help me in order to short out this issue.?

Many thanks.

 

5 REPLIES 5

So this isn't an ST-LINK..

Use USB/DFU mode to communicate with the G4 chip which is in System Loader mode, ie reset with BOOT0 =HIGH

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Are you selecting "USB" to communicate with the device? "ST-LINK" mode is only for the SWD connections. It sounds like you are communicating with USB, or maybe UART.

In Device Manager, does the USB DFU bootloader show up?

If you feel a post has answered your question, please click "Accept as Solution".

Hi,

thanks. actually in DFU Mode it shows in device manager USB in "DFU in FS Mode". but in DFUse Demo tool, this device is not showing in list (in Available DFU devices). 

(1) In fact, I  have problem of this ST-Link in stm32cubeIDE, where i can not debug/run as/access the USB port based custom designed PCB.  Once I click on project in stm32cubeIDE and then right click, then doing run as/debug as, then above message "No ST-LINK detected!!! please conncet the ST-LINK and restart the session." shows. Because of this issue, currently I am using SWD interface on PCB (which is connected through STLINK-V3SET deivice externally, then finally it gets conncted to PC) to debugg/run. Actually we need this USB 2.0 port Micro-B, active with STM32cubeIDE in order to do the debugging/run as.

(2) Seperately I tried to programm the STM32G4 using stm32cube programmer where it detects the USB in USB mode selected, with DFU mode (after pressing the push button, to connect BOOT0 with VDD)  then it shows me some Read out protect prob so i disabled the RDP, then it gets connected. but my programming was not successful as device gets diconnected.

please let me know your opinion.

Thanks.

Your custom board with USB is NOT going to present as an ST-LINK

You'll probably was to test/evaluation the performance of the USB implementation on your STM32G4 using USB Device firmwares, ie VCP, DFU or MSC to confirm it's working properly.

Double check expectations for USB in app note AN2606.

Check with other ST boards using STM32G4 and providing USB port, validate USB DFU operation.

DfUse Demo is very OLD, predating STM32G4, only STM32 Cube Programmer is currently being maintained for newer products.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

You cannot debug using the USB port. You will need the SWD connection for this.

If you feel a post has answered your question, please click "Accept as Solution".