Error: couldn't bind tcl to socket on port 6666: No error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ThVu_1095621
Level 1
Level 1
First question asked Welcome!

Started by GNU MCU Eclipse
Open On-Chip Debugger 0.11.0+dev-4.3.0.1746 (2021-09-16-07:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : Using CMSIS-flash algorithms 'CY8C6xxA_SMIF' for bank 'psoc6_smif0_cm0' (footprint 15752 bytes)
Info : CMSIS-flash: ELF path: ../flm/cypress/cat1a/CY8C6xxA_SMIF.FLM
Info : CMSIS-flash: Address range: 0x18000000-0x1FFFFFFF
Info : CMSIS-flash: Program page size: 0x00001000 bytes
Info : CMSIS-flash: Erase sector size: 0x00040000 bytes, unified
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf155, serial=1C130F1C02179400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.30.1155
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.295 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
***************************************
** Silicon: 0xE453, Family: 0x102, Rev.: 0x12 (A1)
** Detected Device: CY8C624ABZI-S2D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.378
** Chip Protection: NORMAL
***************************************
Info : psoc6.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for psoc6.cpu.cm0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for psoc6.cpu.cm4 on 3334
Info : Listening on port 3334 for gdb connections
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device (mode: reset)...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
Started by GNU MCU Eclipse
Error: couldn't bind tcl to socket on port 6666: No error
Info : psoc6.dap: powering down debug domain...

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @ThVu_1095621

Could you please share a screenshot of the Help > About Cypress Programmer window and Options > Programmer Options window? 

Tcl port is not used by Cypress Programmer and it is not a necessity for the functioning. However, could you please enable the 6666 port in your antivirus/firewall and let me know if that works? Is programming successful in ModusToolbox?

Additionally, could you please try adding tcl_port disabled command in cpu_psoc6_base.cfg in the directory - <cypress_programmer_installation_directory>\ scripts\PSoC6\?

Edit: This Knowledge Based Article should provide details on changing the Tcl port in ModusToolbox - Ports Used by ModusToolbox and Cypress Programmer - KBA230901

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
1 Reply
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @ThVu_1095621

Could you please share a screenshot of the Help > About Cypress Programmer window and Options > Programmer Options window? 

Tcl port is not used by Cypress Programmer and it is not a necessity for the functioning. However, could you please enable the 6666 port in your antivirus/firewall and let me know if that works? Is programming successful in ModusToolbox?

Additionally, could you please try adding tcl_port disabled command in cpu_psoc6_base.cfg in the directory - <cypress_programmer_installation_directory>\ scripts\PSoC6\?

Edit: This Knowledge Based Article should provide details on changing the Tcl port in ModusToolbox - Ports Used by ModusToolbox and Cypress Programmer - KBA230901

Thanks and Regards,
Rakshith M B
0 Likes