Forum: System Workbench for STM32

Address in use

Hey,

i am using sw4stm32 in my mac but got a problem when i remove my stlink and plug it back in and want to flash.

the error is:
Error: couldn’t bind to socket: Address already in use

Can anyone help me?

Cheers Alex

you have to kill your running openocd process, sometimes after killing process i had to replug stlink

For me it was that port 6666 was being used by another process.
So look out for 3333, 4444 and 6666 it seems that all of these are needed

Thanks for your post. 6666 is also work for me.

BS