SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By wjzhang
when i used ./configure --enable-cmsis-dap --disable-werror compile openocd in migGW/msys 32. it work on TCP port 3333. but failed on Pipeline. it rejected.
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x0bb11477
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection from pipe
Error: attempted 'gdb' connection rejected

it failed at Gdb_server.c gdb_new_connection():
/* remove the initial ACK from the incoming buffer */
retval = gdb_get_char(connection, &initial_ack);
if (retval != ERROR_OK)
return retval;

using this command:
arm-none-eabi-gdb custom-section.elf | openocd -f board/mb00xx.cfg -c "gdb_port pipe" -c "log_output openocd.log"

openocd version 0.10.0 , 0.9.0
how to fixed this? do need add patch? or just add some compile configure options?
By wjzhang
sorry, my bad. command line is wrong.
should be
arm-none-eabi-gdb custom-section.elf
(gdb) target remote | openocd -f board/mb00xx.cfg -c "gdb_port pipe" -c "log_output openocd.log"
(gdb) mon reset halt