Skip to main content
Associate II
August 6, 2024
Question

Target No Device Found - Error in Initializing ST-LINK Device

  • August 6, 2024
  • 2 replies
  • 2879 views

Hello  ST Community,

I'm experiencing an issue with my STM32 development setup in STM32CubeIDE. When I try to connect to my target device [ STM32WLE5JC Module(LoRa-E5 mini)] using the ST-LINK, I receive the following error:

"Target no device found, Error in initializing ST-LINK device.

Reason: No device found on target."

My Setup:

----------------------------

IDE: STM32CubeIDE
ST-LINK SN : 260023000B33353739303541
ST-LINK FW : V2J45S7
MCU: STM32WLE5JC(LoRa-E5 mini)

 

Steps Taken:

----------------------------

- Verified physical connections.
- Powered the microcontroller adequately.
- Used ST-Link utility and CubeIDE for debugging.
- Configured the software environment for SWD.

I'm reaching out to the community for insights into resolving the connectivity issue. If anyone has encountered similar problems or has expertise in debugging STM32 microcontrollers, your input would be highly appreciated.

 

 

    2 replies

    Technical Moderator
    August 6, 2024

    Hello @Niki_Nagar ,

    Did you check the jumpers if are correct on your board? Make sure that your ST-Link firmware is upgraded.

    Did you try connecting your board with STM32CubeProgrammer?

    I advise your try "Connect Under reset" mode.

    You can refer to this FAQ, this may help you to fix your debugger connection issues.

    "When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
    Associate II
    August 6, 2024

    Hello @Imen.D , Thank you for your response,

    - I have recheck the connection between device and St-Link through jumper. And it is correct. 

    - I have upgraded the St-link through STLinkUpgrade.exe. It has successfully upgraded.

    - I tried to connect board with STM32CubeProgrammer through ST-Link and it is showing error:

    -------------------------------------

    UR connection mode is defined with the HWrst reset mode
    ST-LINK SN : 260023000B33353739303541
    ST-LINK FW : V2J45S7
    Board : --
    Voltage : 2.98V
     Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication

    @gbm , @Tesla DeLorean , @Jim Seymour 

    Associate II
    January 22, 2025

    Hey, did you find the solution to this? 

    Tesla DeLorean
    Guru
    January 22, 2025

    Unfortunately saying some is correct when it does not work is not compelling..

    The ST-LINK in the picture looks to be wired incorrectly. The buffers require pin 1 or 2 of the 20-pin header to have VTarget.

    stlink_pinone.jpgstlink_with_cable.jpg

    https://community.st.com/t5/stm32-mcus-security/unable-to-detect-target-stm32h503/td-p/764700

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