Skip to main content
Graduate
April 19, 2024
Solved

STM32CubeProgrammer Error: No STM32 target found!

  • April 19, 2024
  • 2 replies
  • 3415 views

I have a STM32F405RGT6 on a custom PCB and are using a ST-Link/V2 ISOL in my computer. A USB-Mini is conencted to the ST-Link and from the ST-Link I use RESET, SWCLK, SWIO and GND to my STM32.

 

I have tried connecting to the ST-Link with the STM32CubeProgrammer with the following settings:

Port: SWD

Frequency: 4000

Mode: Normal

Access port: 0 

Reset Mode: Software reset

Speed: Reliable

Shared: Disabled

Debug in Low Power mode: ON

mathieusteketee_1-1713515915240.png

Before connecting I have updated the driver to the latest according to the STM32CubeProgrammer: 

mathieusteketee_2-1713515989028.png

Version: V2J43S7

 

After updating the driver I tried to connecting to the MCU and recieve the same error every time:

Error: No STM32 target found! If your product embeds Debug Authenication, please perfrom a discovery using Debug Authentication

mathieusteketee_0-1713515888552.png

(I have also tried with different settings and it gave the same error)

 

I have tried following steps on the following guide:

https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/ta-p/49693

 In the steps I have followed all the steps until 3.2 where I cant debug the main.c file in the Src folder.

I receive this error when trying to debug: 

mathieusteketee_3-1713516411253.png

I have chosen the .elf file in the Debug folder as shown here:

mathieusteketee_4-1713516504230.png

How do I manually enter the offset for the ELF file in the lanch configuration or disable symbol loading for the ELF file?

 

If there is another way to solve the "Error: No STM32 target found! If your product embeds Debug Authenication, please perfrom a discovery using Debug Authentication" error I am all ears. 

 

Thank you.

 

 

 

 

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

    I noticed a wiring issue with the not having a common ground to the ST-link and then got 3.79V as the target voltage. Once I had the target voltage at 3.79V I could connect! Thank you Andrew for your help. Really appreciate it.  

    mathieusteketee_1-1713522448188.png

     

    2 replies

    Super User
    April 19, 2024

    see:

    AScha3_0-1713517299387.png

    So your target has no power - or you didnt connect to st-link VDD input ; st-link "see" no target with power.

    Graduate
    April 19, 2024

    Hi AScha.3, thank you for your quick reply.

    Might be the target does not have power. I have not connected the ST-link VDD input since the MCU recieves 3.3V from the PCB. Is it necessary to set 3.3V on the VDD pin?

     

     

    Super User
    April 19, 2024

    @mathieusteketee wrote:

    I have not connected the ST-link VDD input since the MCU recieves 3.3V from the PCB.


    The purpose of the ST-Link's VAPP connection is not to supply power to the target, but for the ST-Link to detect that the target is powered. It's how the ST-Link knows that there's a Target connected.

    It is also used as the reference for the ST-Link's voltage translators.

    When the ST-Link does not detect power from the Target, it assumes that there is no Target present.

    EDIT:

    From the ST-Link User Manual:

    AndrewNeil_0-1713518865024.png

     


    Super User
    April 19, 2024

    @mathieusteketee wrote:

    A USB-Mini is conencted to the ST-Link and from the ST-Link I use RESET, SWCLK, SWIO and GND to my STM32.


    Words are a particularly poor way to describe electrical connections - that's why we have schematics (aka "circuit diagrams")

    As @AScha.3 said, you also need a VDD reference to the ST-Link.

    Graduate
    April 19, 2024

    My applogies, here you go:

    mathieusteketee_7-1713519063634.png