OpenCores
URL https://opencores.org/ocsvn/de1_olpcl2294_system/de1_olpcl2294_system/trunk

Subversion Repositories de1_olpcl2294_system

[/] [de1_olpcl2294_system/] [trunk/] [sw/] [ecos/] [openocd/] [lpc2294.cfg] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 qaztronic
 
2 10 qaztronic
 
3 7 qaztronic
#daemon configuration
4
telnet_port 4444
5
gdb_port 3333
6
 
7
 
8
#interface
9
interface ft2232
10
ft2232_device_desc "Olimex OpenOCD JTAG A"
11 10 qaztronic
ft2232_layout olimex-jtag
12
ft2232_vid_pid 0x15ba 0x0003
13
jtag_khz 850
14 7 qaztronic
 
15 10 qaztronic
 
16
if { [info exists CHIPNAME] } {
17
   set  _CHIPNAME $CHIPNAME
18
} else {
19 7 qaztronic
   set  _CHIPNAME lpc2294
20
}
21
 
22 10 qaztronic
if { [info exists ENDIAN] } {
23
   set  _ENDIAN $ENDIAN
24
} else {
25 7 qaztronic
   set  _ENDIAN little
26
}
27
 
28
if { [info exists CPUTAPID ] } {
29
   set _CPUTAPID $CPUTAPID
30
} else {
31
  # force an error till we get a good number
32
   set _CPUTAPID 0xffffffff
33
}
34
 
35 10 qaztronic
jtag_nsrst_delay 200
36
jtag_ntrst_delay 200
37 7 qaztronic
 
38
#use combined on interfaces or targets that can't set TRST/SRST separately
39 10 qaztronic
reset_config trst_and_srst srst_pulls_trst
40 7 qaztronic
 
41
 
42
#jtag scan chain
43 10 qaztronic
#jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
44 7 qaztronic
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4f1f0f0f
45
 
46 10 qaztronic
set _TARGETNAME $_CHIPNAME.cpu
47 7 qaztronic
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
48 10 qaztronic
$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
49 7 qaztronic
 
50
#flash configuration
51
#flash bank lpc2000   0 0  
52 10 qaztronic
set _FLASHNAME $_CHIPNAME.flash
53
flash bank $_FLASHNAME lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum
54 7 qaztronic
 
55
# For more information about the configuration files, take a look at:
56
# openocd.texi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.