Skip to main content
Visitor II
July 21, 2019
Question

ST-Link GDB Server doesn't connet to the target in STM32CubeIDE

  • July 21, 2019
  • 3 replies
  • 1597 views

Hello! The problem is ST-Link V3 not always connect to the target with ST-Link GDB Server. It can connect one time, but next ten times doesn't connect. Reboot the programmer or reboot target doesn't help. With OpenOCD - works great with the same cabel and target device. China's clone J-Link also work fine. Just with ST-Link V3 together ST-Link GDB Server there is a problem.

    This topic has been closed for replies.

    3 replies

    Graduate II
    July 21, 2019

    Probably you need to connect under reset.

    EMituAuthor
    Visitor II
    July 21, 2019

    Where can i find this option?

    EMituAuthor
    Visitor II
    July 21, 2019

    I think it's a bug in CubeIDE. Because if i once connect to the target, next stop debuging and then try to debug again - i couldn't connect. But if go to debug settings and make some changes (doesn't matter wich one, for example check/uncheck "wait for synk packet" and push "apply" ) - than will be connection success.

    EMituAuthor
    Visitor II
    July 31, 2019

    Still can't resolve problem with connection to the target with ST-Link GDB server. For example, after connection secondary connection couldn't be success. Doesn't matter how many times i'll try to connect. Connection will be fail. Firmware is flashing successfully but doesn't starts. But if I erase chip with ST-Link Utility or CubeProg - connection will be success with 100% probability. Who knows what's the problem?

    With OpenOCD - no problem. I can connect or disconnect infinitely number of times with the same cable and device. China's J-link also work with this board and cable. Only St-Link GDB server calls pain in the pain in the down of back