What is the port number for gdb connection ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

What is the port number for gdb connection ?

3,853件の閲覧回数
sinanakman
Senior Contributor III

Hi

 

We are trying to connect to CW TAP from gdb client with port number 2345 but CW TAP refuses it.

 

(gdb) target remote 192.168.4.102:2345

192.168.4.102:2345: Connection timed out.

 

In the eterhtap I can see that, when gdb client sends

320    187.683865    192.168.4.12    192.168.4.102    TCP    50562 > dbm [SYN] Seq=0 Win=14600 Len=0 MSS=1460 SACK_PERM=1 TSV=1872271470 TSER=0 WS=7

CW TAP sends back a reset :

321    187.684083    192.168.4.102    192.168.4.12    TCP    dbm > 50562 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0

 

Is 2345 not the right port number, is there something else we need to enable to connect to CW TAP from a command line gdb client ?

 

Thanks

Sinan Akman

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,909件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

The port number 2345 is correct, please make sure currently only Ethernet connection is available(USB connection is unavailable). Before execute the command "target remote 192.168.4.102:2345", you need to do some configurations under gdb, please download "CWTAP_GDB_P1010_P4080" from CodeWarrior TAP Product Summary Page, and refer to the file <processor>_init.gdb, you could run "source <processor>_init.gdb" directly.

In addition, for detailed steps please refer to the document "GDB for Board Bringup 1.0".

1,909件の閲覧回数
stevebacon
Contributor I

Hi,

I'm trying to use GDB with a Codewarrior TAP over ethernet, I can't find the mentioned file (CWTAP_GDB_P1010_P4080) anywhere, have they been removed from the website, I can't find any information about getting GDB working. Any help would be appreciated.

Thanks.

0 件の賞賛
返信

1,909件の閲覧回数
sinanakman
Senior Contributor III

Hi Yiping, thanks for your reply. I discussed this with one of the FSL's engineer as well. As it turned out, for some reason, gdbproxy did not start in the TAP. A delete followed by config cc cwtap via CCS, re-spawn  the gdbproxy and now it works fine.

Thanks

Sinan Akman

0 件の賞賛
返信