Skip to main content
AZadb.1
Associate
Question

STM32G031J6, STlink not detected

I am new to STM32 programming and while using cubeIde to work on led blinking project. The project is built successfully but after this I get an error that No target found. This happens eventhough I have plugged in the board. So, do I need to use a external debugger for this or connect anyother hardware to the board so as to fix this?

This topic has been closed for replies.

9 replies

ST Technical Moderator

Hello @AZadb.1​ ,

Try Connect under reset, and check pull BOOT0 High or low.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AZadb.1
AZadb.1Author
Associate

hey, I think I tried this but it still didn't work, but just to verify how do I check the BOOT0 value and this connect under reset, as I am not sure what i did is right or not

Tesla DeLorean
Guru

You have an ST-LINK?

Which?

Can you see it in Device Manager?

Check cables, make sure not to use charging cables.

Avoid hubs, and docking stations.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AZadb.1
AZadb.1Author
Associate

Yes, in device manager, under Ports it is "STMicroelectronics STLink Virtual COM Port" and in USB devices it is "STLink Debug", both of these are already updated to latest drivers but still on cubeide on STLink is detected? so is something wrong with the board or do I have to use some other STLink?

AScha.3
Super User

try: download STM32CubeProgrammer , can find your Stlink ?

If you feel a post has answered your question, please click on " Best Answer ".
AZadb.1
AZadb.1Author
Associate

Tried the STM32CubeProgrammer but still the same error No STM32 found on Target.

AScha.3
Super User

last chance: in STM32CubeProgrammer try

  • mode: under reset
  • reset mode: hardware

If you feel a post has answered your question, please click on " Best Answer ".
AZadb.1
AZadb.1Author
Associate

Yes did that, still the same, why is this happening its able to upgrade the firmware but not able to detect the STLink?

AScha.3
Super User

no, >No STM32 found on Target < is : stlink connect, but it cannot find your cpu , or nothing connected to stlink. no target means, the stlink can find no cpu to work on.

what you connect to debug or flash ?

If you feel a post has answered your question, please click on " Best Answer ".