Skip to main content
MFred.2
Associate III
November 2, 2021
Solved

STM32CubeIDE, STM32U5 : unable to launch the debugger (gdbserver)

  • November 2, 2021
  • 6 replies
  • 4295 views

Impossible to launch the debugger with the following configuration:

  • STM32CubeIde1.7.0
  • Target Nucleo-U575ZI-Q
  • ST-link :
  1. Version: V3J8M3
  2. Build:  Apr 9 2021 20:49:40

See log files

STm32cubeProg 2.8.1 can connect to the board successfully.

What is wrong ?

BUG ?

This topic has been closed for replies.
Best answer by mattias norlander

Stay below the 8MHz as specified in the errata: https://wiki.st.com/stm32mcu/wiki/STM32CubeIDE:STM32CubeIDE_errata_1.7.0#STM32U5

The lower the better stability.

6 replies

Javier1
Principal
November 2, 2021

maybe you didnt closed the STM32CubeProg session so the gdb server is busy? it happens to me sometimes

hit me up in https://www.linkedin.com/in/javiermuñoz/
MFred.2
MFred.2Author
Associate III
November 2, 2021

0693W00000GWFHpQAP.pngI admit that I have also made this mistake more than once, but not in this case.

thanks

LaurentL
ST Employee
November 2, 2021

Hello,

Can you try to decrease the STLink SWD frequency.

If not better, can you try with OpenOcd gdb server.

Rgds,

Laurent

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
mattias norlander
ST Employee
November 5, 2021

@MFred.2​ , did you solve the issue with Laurent's advice?

MFred.2
MFred.2Author
Associate III
November 5, 2021

Hi,

Indeed, decreasing the frequency of the St-link seems to improve the connection, but it is not very stable.

The frequency of successful connection varies between 8Mhz and 21Mhz !

I have not encountered this problem on other Nucleo board references.

Regards

Frederic

mattias norlander
ST Employee
November 5, 2021

Stay below the 8MHz as specified in the errata: https://wiki.st.com/stm32mcu/wiki/STM32CubeIDE:STM32CubeIDE_errata_1.7.0#STM32U5

The lower the better stability.

Amel NASRI
ST Technical Moderator
November 10, 2021

Thanks @mattias norlander​  for sharing this STM32CubeIDE errata reference. It is helpful to make our community aware about it.

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
MFred.2
MFred.2Author
Associate III
November 5, 2021

thank you for this information,

This problem is therefore already known

I didn't think about reading this errata sheet, sorry