Skip to main content
gapryun
Associate II
December 21, 2013
Question

GDB Connection Timeout

  • December 21, 2013
  • 3 replies
  • 1611 views
Posted on December 21, 2013 at 14:53

I used to the St-write to burn .bin to the STM32F4 and saw the message which I expected. Now, I hope to understand how GPIO init. Hence, I use OpenOCD and arm-none-eabi-gdb to do that. Here, it is my process.

$ minicom 

$ openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg 

$ arm-none-eabi-gdb main.elf

(gdb) target remote :3333

(gdb) :3333: Connection timed out.

How do I check the port of OpenOCD? Why does it occur timeout?  

#openocd-gdb-connection-timeout
    This topic has been closed for replies.

    3 replies

    alfbaz
    Associate
    December 22, 2013
    Posted on December 22, 2013 at 03:52

    try target remote localhost:3333

    gapryun
    gapryunAuthor
    Associate II
    December 22, 2013
    Posted on December 22, 2013 at 12:33

    (gdb) localhost:3333: Connection timed out.

    It's same.

    xacc
    Associate II
    December 23, 2013
    Posted on December 23, 2013 at 07:13

    If it is intermittent, try another USB port. I kept on getting timeouts restarting a debug session in Atollic till I finally found a USB port that did not do it any more.