Skip to main content
Visitor II
September 26, 2023
Solved

STM32G474RE usb connection failed

  • September 26, 2023
  • 3 replies
  • 2792 views

Hi, I just got the nucleo stm32G474RE board and I'm trying to run a simple code with the STM32CubeIDE through Linux ubuntu 22.04 the problem is that my laptop seems to not recognize the board when I am connecting it via USB port literally nothing happens. There is no new window that appear in my computer telling me that a new usb device is connected I know I have the ST-Link drivers already installed since when I'm trying with my nucleo stm32F446RE board everything works fine. I would appreciate if you could help

Thank you

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

    Try to connect with STM32CubeProgrammer. Does the program detect the ST-Link? If not, ensure you're using a USB cable with data lines--some of them only have power for charging.

    Does LD1 come on? If so what color and is it flashing?

    3 replies

    Technical Moderator
    September 26, 2023

    Hello @Vueko and welcome to the Community :)

    Please try follow this FAQ: USB device not recognized - STMicroelectronics Community

    Make sure to upgrade the ST-Link Firmware (go to ST-LINK>firmware update) or through this Link STSW-LINK009.

    Imen

    VuekoAuthor
    Visitor II
    September 26, 2023

    The link you provided are only good for Windows, I'am using linux with ubuntu 22.04

    TDKAnswer
    Super User
    September 26, 2023

    Try to connect with STM32CubeProgrammer. Does the program detect the ST-Link? If not, ensure you're using a USB cable with data lines--some of them only have power for charging.

    Does LD1 come on? If so what color and is it flashing?

    VuekoAuthor
    Visitor II
    September 26, 2023

    Hello again,

    I did install STM32CubeProgrammer for linux and i did connect my stm32G474 board with it and it did not detect it but then I changed cable and it worked... thanks

    VuekoAuthor
    Visitor II
    September 26, 2023

    When i connect the board the LD2 LED is flashing in green as expected by reading the user manual. I will try to connect to the STM32CubeProgrammer and keep you posted