cancel
Showing results for 
Search instead for 
Did you mean: 

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

MFred.2
Associate III

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

8 REPLIES 8
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
MFred.2
Associate III

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

thanks

LaurentL
ST Employee

Hello,

Can you try to decrease the STLink SWD frequency.

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

Rgds,

Laurent

mattias norlander
ST Employee

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

MFred.2
Associate III

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

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.

MFred.2
Associate III

thank you for this information,

This problem is therefore already known

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

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 Accept as Solution on the reply which solved your issue or answered your question.