Skip to main content
Visitor II
November 22, 2024
Question

ST-link stop working after configuring Nucleo-G0B1RE as USB Device

  • November 22, 2024
  • 1 reply
  • 1580 views

Hello everyone,

I'm trying to debug firmware on a custom ST32H750XBH6 board. Once I configured the MCU on StmCubeMX to act as a USB_OTG_HS after flashing the firmware the ST-link stopped working and it gave me the error message:
Target no device found:
Error in initializing ST-LINK device.

Reason: No device found on target.

 

It is strange because the same thing happened with a NUCLEO-G0B1RE. After configuring the board as USB_OTG_FS and flashing the firmware, the st-link embedded on the board stopped working. I'm sorry if this was a well-discussed topic, but I couldn't find an answer in the community, I'm an early developer.

Thank you in advance.

    This topic has been closed for replies.

    1 reply

    Super User
    November 22, 2024

    Have you compiled the firmware yourself from sources or received the firmware binaries from somebody else?

    Is there chance that you flashed a wrong firmware, or made for a different board?

     

     

    GioBytemAuthor
    Visitor II
    November 25, 2024

     I flashed another firmware on the custom board, but on the Nucleo board, I initialized the Nucleo myself only activating the USB_OTG_HS peripheral to make the Nucleo a USB Device. After flashing the Nucleo once successfully, I can not flash it again.

    But is it even possible to successfully flash firmware that is not compatible with the MCU on the board? 

    Thanks btw.

    Technical Moderator
    November 25, 2024

    Hi @GioBytem 

    Flashing firmware that is not compatible with the MCU on the board can work with the similar internal flash and cortex M but can lead to various issues, including the inability to reprogram the device. So, you must be careful while checking the clock settings, power supply (LDO, SMPS) boot address, etc..

    Did you set all free pins as analog? maybe you freed RCC oscillator pins or SWDIO and SWCLK you, so you lost access to debug?