OpenOCD Error: "Error: couldn't bind tcl to socket on port 6666: Cannot assign requested address"
Nov 03, 2018 asked by anonymous
Question / Issue:
When I run the openocd script, I get the following error: "Error: couldn't bind tcl to socket on port 6666: Cannot assign requested address"
Date: Nov. 3, 2018
Author: Mind Chasers
We have seen this problem if our script uses the wrong bindto address. We typically set up a script to invoke openocd as a gdbserver on one machine and run the IDE/GDB on another host. We do this by running the following: openocd <other options> -c "bindto <ip address>" If the ip address is set to the wrong address, then we see this error. Also, if you run openocd with the debug level 3 option (--debug), you should see debug output prior to the error stating that openocd couldn't bind to the particular ip address.