the Pipeline connection rejected

Open source ARM Debugger

Moderator: phalanx

the Pipeline connection rejected

Postby wjzhang » Thu May 11, 2017 8:36 pm

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.
logs:
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?
wjzhang
 
Posts: 3
Joined: Thu May 11, 2017 2:44 am

Re: the Pipeline connection rejected

Postby wjzhang » Fri May 12, 2017 2:48 am

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
wjzhang
 
Posts: 3
Joined: Thu May 11, 2017 2:44 am


Return to OpenOCD

Who is online

Users browsing this forum: No registered users and 1 guest