Professional Documents
Culture Documents
JTAGiPAQh5450V1 1
JTAGiPAQh5450V1 1
JTAGiPAQh5450V1 1
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
All rights reserved for the Free and Open On-Chip Debugging, In-System
Programming and Boundary-Scan Testing Software openOCD from Dominic Rath
This document is only for development and you use it for your own risk
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
Contents
1 Hardware
2 Software
1
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
2
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
1 Hardware
nTRST
see
Note2
TDO TDI
TCK
TMS 3V3 GND
R102
3
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
pin1
4
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
2 Software
2.1 xscale_pxa250_pp.cfg
jtag_nsrst_delay 250
#-- Reset options available
reset_config trst_and_srst separate
run_and_halt_time 0 30
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
# iPAQ h5450 Flash Layout
# partitions=00000002
# bootldr
# base: 00000000
# size: 00040000
# end: 00040000
# flags: 00000002
# root
# base: 00040000
# size: 01FC0000
# end: 02000000
# flags: 00000018
5
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
The Intel® XScale™ core supports loading either instruction cache during reset
and during program execution. Loading the instruction cache during normal
program execution requires a strict handshaking protocol between software
running on the Intel® XScale™ core and the external host, openOCD has some
files for that and load that automatic by Reset. This Files see you below.
C:\Programme\openocd-r520\xscale
C:\Programme\openocd-r520\driver\parport\install_giveio.bat
C:/Programme/openocd-r520/bin/openocd-pp -f /Programme/openocd-r520/bin/configs/xscale_pxa250_pp.cfg
C:\Programme\openocd-r520\xscale>C:/Programme/openocd-r520/bin/openocd-pp -f /Pr
ogramme/openocd-r520/bin/configs/xscale_pxa250_pp.cfg
Open On-Chip Debugger (2008-03-22 12:00 CET) svn: r520
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/
Info: jtag.c:1329 jtag_examine_chain(): JTAG device found: 0x49264013 (Manufa
cturer: 0x009, Part: 0x9264, Version: 0x4)
6
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
cd C:\Programme\yagarto\bin
C:\Programme\yagarto\bin>arm-elf-gdb.exe
GNU gdb 6.7.1
Copyright (C) 2007 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-mingw32 --target=arm-elf".
(gdb)
C:\Programme\yagarto\bin>arm-elf-gdb.exe
GNU gdb 6.7.1
Copyright (C) 2007 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-mingw32 --target=arm-elf".
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000230 in ?? ()
(gdb)
C:\Programme\yagarto\bin>arm-elf-gdb.exe
GNU gdb 6.7.1
Copyright (C) 2007 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-mingw32 --target=arm-elf".
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000230 in ?? ()
(gdb) x /20 0x0
0x0: 0xea000082 0xea00000c 0xea00001b 0xea00002a
0x10: 0xea000046 0xea000070 0xea000054 0xea000061
0x20: 0x646c7462 0x0002150c 0x00000000 0x01040009
0x30: 0x000000d7 0x30303933 0x0003c0e4 0xe28fd0ac
0x40: 0xe88d1fff 0xe1a0c00e 0xeb000201 0xe59f0bd8
(gdb)
7
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
Than you have a connction with openOCD and type in: help xscale
On the first dosbox you see some messages from GDB and Telnet.
C:\Programme\openocd-r520\xscale>C:/Programme/openocd-r520/bin/openocd-pp -f /Pr
ogramme/openocd-r520/bin/configs/xscale_pxa250_pp.cfg
Open On-Chip Debugger (2008-03-22 12:00 CET) svn: r520
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/
Info: jtag.c:1329 jtag_examine_chain(): JTAG device found: 0x49264013 (Manufa
cturer: 0x009, Part: 0x9264, Version: 0x4)
Info: server.c:66 add_connection(): accepting 'gdb' connection from 0
Warning: xscale.c:1268 xscale_halt(): target was already halted
Warning: gdb_server.c:418 gdb_get_packet_inner(): acknowledgment received, but n
o packet pending
Info: server.c:66 add_connection(): accepting 'telnet' connection from 0
Info: server.c:355 server_loop(): dropped 'telnet' connection
Info: server.c:66 add_connection(): accepting 'telnet' connection from 0
8
EDA-Consult CAE-CAD-CAM
JTAG iPAQ h5450 V1.1
9
EDA-Consult CAE-CAD-CAM