cancel
Showing results for 
Search instead for 
Did you mean: 

GDB Connection Timeout

gapryun
Associate II
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
3 REPLIES 3
alfbaz
Associate II
Posted on December 22, 2013 at 03:52

try target remote localhost:3333

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

(gdb) localhost:3333: Connection timed out.

It's same.

xacc
Associate II
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.