codewarrior tap and gdb

cancel
Showing results for 
Search instead for 
Did you mean: 

codewarrior tap and gdb

1,697 Views
ericmoors
Contributor I

Hi,

I'm trying to setup a debug environment for the LS1046ARDB.

I've connected a codewarrior tap to it, which is directly connected via an ethernet connection(not USB) to my PC.

I have it configured with a fixed (private range, 10.1.42.1) IP address and can telnet to it just fine.

However when I try to use the gdbserver (proxy?) running on it I run into the following error:

(gdb) target remote 10.1.42.1:2345

Remote debugging using 10.1.42.1:2345

Protocol error: qXfer:features:read (target-features) conflicting enabled responses.

(gdb) set debug remote

Argument required (integer to set it to.).

(gdb) set debug remote 1

(gdb) target remote 10.1.42.1:2345

Remote debugging using 10.1.42.1:2345

Sending packet: $qSupported:multiprocess+;xmlRegisters=i386;qRelocInsn+#b5...Ack

Packet received: PacketSize=3fff;qXfer:auxv:read-;qXfer:features:read+;qXfer:libraries:read-;qXfer:memory-map:read-;qXfer:spu:read-;qXfer:spu:write-;QPassSignals-;

Packet qSupported (supported-packets) is supported

Sending packet: $Hg0#df...Ack

Packet received: OK

Sending packet: $qXfer:features:read:target.xml:0,fff#7d...Ack

Packet received:

Protocol error: qXfer:features:read (target-features) conflicting enabled responses.

(gdb)

So the proxy appears to claim it supports the features:read but when trying to read the (default) target.xml it does not respond?

What do I need to do to use the codewarrior tap with gdb?

please don't point me to this thread, because the steps don't work anymore (besides these are for PPC not an ARM board): https://community.nxp.com/message/916499

3 Replies

603 Views
Pavel
NXP TechSupport
NXP TechSupport

Look at the following:

http://www.nxp.com/video/board-level-bringup-using-codewarrior-tap-and-gdb:BOARDLVL_CWTAPGDB_VID

 

It is too old demo project.

See documentation about GDB and CodeWarrior TAP in the attachment.

 

Source code is available using the following link:

https://drive.google.com/open?id=0B0qEfizitWXlVFhBUDNaRE1lTFk


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

602 Views
ericmoors
Contributor I

The video I cannot find at the NXP site, but I assume it is the same as this one: https://tune.pk/video/2538839/codewarrior-tap-and-gdb-board-level-bringup

and access to google drive is blocked by our company network :smileysad:

The attachment contains very useful information. The document describes on page 3 in the chapter "gdb and other usefull basics" the need for the target.xml which is supposedly downloadable from the old freescale site (http://freescale.com/CWTAP - downloads tab). However, on the NXP site I cannot find these anywhere.

Again on page 5 it mentions the target.xml that I am missing:

Where to get XML files with register information

Freescale.com/CWTAP and then click on downloads TAB

This will either be in a download that has lots of GDB technology OR we might put it in an XML/init file ONLY download specific to the chip and board.

Just look for your Freescale processors model number and you should find what you need.

How can I generate/where can I get a target.xml for the LS1046A?

602 Views
zwilcox
Contributor IV

Hey,

I was wondering if you have successfully connected GDB remotely to the CodeWarrior Tap?

0 Kudos