Skip to main content
AZadb.1
Associate
November 25, 2022
Question

STM32G031J6, STlink not detected

  • November 25, 2022
  • 9 replies
  • 1854 views

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

Technical Moderator
November 25, 2022

Hello @AZadb.1​ ,

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

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".Thanks Imen
AZadb.1
AZadb.1Author
Associate
November 25, 2022

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
November 25, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..
AZadb.1
AZadb.1Author
Associate
November 26, 2022

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
November 26, 2022

try: download STM32CubeProgrammer , can find your Stlink ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
AZadb.1
AZadb.1Author
Associate
November 27, 2022

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

AScha.3
Super User
November 27, 2022

last chance: in STM32CubeProgrammer try

  • mode: under reset
  • reset mode: hardware

"If you feel a post has answered your question, please click ""Accept as Solution""."
AZadb.1
AZadb.1Author
Associate
November 27, 2022

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
November 27, 2022

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 ""Accept as Solution""."