Skip to main content
Explorer
October 14, 2024
Question

STM32U5 debugger connection issue only when including a specific library.

  • October 14, 2024
  • 1 reply
  • 1057 views

I am working with an SMT32u5g9vjt6q and a genuine stlink-v3set from mouser, everything was working as expected until I #included a library...at that point when trying to upload the code via the debug button I would get an "Could not verify ST Device! Please verify that the latest version of gdb-server is used for the connection" error.

Just to be clear this error happens even when I am not using the library, just adding the #include causes the error via the debug button.  Further I can use the run button to successfully upload and ran the code, as soon as I comment out the #include of the library I can go back to debugging as usual.  The code will compile with no errors or warnings even when I implement the library in my code, as well as even running the code w/ library being used.

    This topic has been closed for replies.

    1 reply

    ST Employee
    October 15, 2024

    which library do you include? 

    could you please paste your code?