Error: couldn't bind tcl to socket: Address already in use when run openocd
When Try to run openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg again it gives following error message in macOS
(base) System:tmp adnan$ openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Error: couldn't bind tcl to socket: Address already in use
OR
lsof -nP -i4TCP:3333 | grep LISTEN
The above command will show you PID using this port, now you can kill the process by the following command
(base) System:tmp adnan$ openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Error: couldn't bind tcl to socket: Address already in use
Open terminal
Get the list of used ports
lsof -wni tcp:3333OR
lsof -nP -i4TCP:3333 | grep LISTEN
The above command will show you PID using this port, now you can kill the process by the following command
Comments
Post a Comment