Where is processorID_init.gdb?

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is processorID_init.gdb?

273 Views
Contributor III

I would like to use GDB using T2080RDB and CodeWarrior TAP. I have seen that I need processorID_init.gdb to do it. But I cannot find this file. Where I can find it? Could you provide it?

Labels (1)
5 Replies

16 Views
NXP TechSupport
NXP TechSupport

Please download gdb_test_ccs_365.tar.gz from the following link, please use files in bin folder and take T4240 platform as an exmaple.

https://drive.google.com/open?id=1bqMYvAvDENhapBlmTepsvIJsNKuhIT3m 

16 Views
Contributor III

I am trying to follow your step. However, I am not able to succeed. What am I doing wrong? You can see the log here:

GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set logging off
(gdb) set debug remote 0
(gdb) set remotetimeout 20
(gdb) set tdesc filename ../xml/power-core.xml
(gdb) target remote myt2080:2345
Remote debugging using myt2080:2345
0x00000000 in ?? ()
(gdb) mon jtag_chain t4amp
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) set tdesc filename ../xml/e6500.xml
(gdb) set remote hardware-breakpoint-limit 10
(gdb) target remote myt2080-:2345
Remote debugging using myt2080:2345
0x0000000000000000 in ?? ()
(gdb) mon probe fpga
(gdb) mon ccs_host myt2080
(gdb) mon ccs_path /mnt/flash/ccs/bin/ccs
(gdb) mon jtag_speed 0x00003E80
jtag speed is set to 16000, not connected to probe
(gdb) mon jtag_chain t4amp
(gdb) mon jtag_chain
t4amp
Not connected to target
(gdb) mon connect
Failed to start or connect to ccs "/mnt/flash/ccs/bin/ccs"
Protocol error with Rcmd

0 Kudos

16 Views
Contributor III

Just to provide more information:

T2080RDB + Codewarrior TAp (Firmware= bootloader (1.0.1), Operating system (1.0.4))

I run in GDB the following commands:

set logging on
set debug remote 10
set remotetimeout 20
set tdesc filename ../xml/power-core.xml
target remote t2080-tap-01:2345
mon jtag_chain t4amp
kill
set tdesc filename ../xml/e6500.xml
set remote hardware-breakpoint-limit 10
target remote t2080-tap-01:2345
mon probe fpga
mon ccs_host t2080-tap-01
mon ccs_path /opt/Freescale/CodeWarrior_PA_10.4.0/PA/ccs/bin/ccs
mon jtag_speed 0x00003E80
mon jtag_chain t4amp
mon connect

I get the following:

./powerpc-linux-gnu-gdb
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set logging on
Copying output to gdb.txt.
(gdb) set debug remote 10
(gdb) set remotetimeout 20
(gdb) set tdesc filename ../xml/power-core.xml
(gdb) target remote t2080-tap-01:2345
Remote debugging using t2080-tap-01:2345
Sending packet: $qSupported:multiprocess+;qRelocInsn+#2a...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: $?#3f...Ack
Packet received: T05
Sending packet: $Hc-1#09...Ack
Packet received:
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qAttached#8f...Ack
Packet received:
Packet qAttached (query-attached) is NOT supported
Sending packet: $g#67...Ack
Packet received: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sending packet: $p40#d4...Ack
Packet received: 00000000
Packet p (fetch-register) is supported
Sending packet: $m0,4#fd...Ack
Packet received: 01010101
Sending packet: $mfffffffc,4#fa...Ack
Packet received: 01010101
Sending packet: $m0,4#fd...Ack
Packet received: 01010101
Sending packet: $mfffffffc,4#fa...Ack
Packet received: 01010101
0x00000000 in ?? ()
Sending packet: $qTStatus#49...Ack
Packet received:
(gdb) mon jtag_chain t4amp
Sending packet: $qRcmd,6a7461675f636861696e207434616d70#78...Ack
Packet received: OK
(gdb) kill
Kill the program being debugged? (y or n) y
Sending packet: $k#6b...Ack
(gdb) set tdesc filename ../xml/e6500.xml
(gdb) set remote hardware-breakpoint-limit 10
(gdb) target remote t2080-tap-01:2345
Remote debugging using t2080-tap-01:2345
Sending packet: $qSupported:multiprocess+;qRelocInsn+#2a...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: $?#3f...Ack
Packet received: T05
Sending packet: $Hc-1#09...Ack
Packet received:
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qAttached#8f...Ack
Packet received:
Packet qAttached (query-attached) is NOT supported
Sending packet: $g#67...Ack
Packet received: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sending packet: $m0,4#fd...Ack
Packet received: 01010101
Sending packet: $mfffffffc,4#fa...Ack
Packet received: 01010101
Sending packet: $mfffffff8,4#cf...Ack
Packet received: 01010101
Sending packet: $m0,4#fd...Ack
Packet received: 01010101
Sending packet: $mfffffffc,4#fa...Ack
Packet received: 01010101
Sending packet: $mfffffff8,4#cf...Ack
Packet received: 01010101
0x0000000000000000 in ?? ()
Sending packet: $qTStatus#49...Ack
Packet received:
(gdb) mon probe fpga
Sending packet: $qRcmd,70726f62652066706761#6b...Ack
Packet received: OK
(gdb) mon ccs_host t2080-tap-01
Sending packet: $qRcmd,6363735f686f73742074323038302d7461702d3031#68...Ack
Packet received: OK
(gdb) mon ccs_path /opt/Freescale/CodeWarrior_PA_10.4.0/PA/ccs/bin/ccs
Sending packet: $qRcmd,6363735f70617468202f6f70742f467265657363616c652f436f646557617272696f725f50415f31302e342e302f50412f6363732f62696e2f636373#e4...Ack
Packet received: OK
(gdb) mon jtag_speed 0x00003E80
Sending packet: $qRcmd,6a7461675f73706565642030783030303033453830#02...Ack
Packet received: O6a7461672073706565642069732073657420746f2031363030302c206e6f7420636f6e6e656374656420746f2070726f62650a
jtag speed is set to 16000, not connected to probe
Packet received: OK
(gdb) mon jtag_chain t4amp
Sending packet: $qRcmd,6a7461675f636861696e207434616d70#78...Ack
Packet received: OK
(gdb) mon connect
Sending packet: $qRcmd,636f6e6e656374#9d...Ack
Packet received: O4661696c656420746f207374617274206f7220636f6e6e65637420746f2063637320222f6f70742f467265657363616c652f436f646557617272696f725f50415f31302e342e302f50412f6363732f62696e2f63637322200a
Failed to start or connect to ccs "/opt/Freescale/CodeWarrior_PA_10.4.0/PA/ccs/bin/ccs"
Packet received: E00
Protocol error with Rcmd

0 Kudos

16 Views
Contributor III

Any help to be able to run gdb in T2080RDB using codewarrior TAP?

0 Kudos

16 Views
Contributor III

Thanks very much, Yiping Wang. Is T4240_init.gdb compatible with T2080RDB? Do I have to modify T4240_init.gdb in order to make a new T2080_init.gdb functional for my T2080RDB?

Best Regards

0 Kudos