~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to tcl/target/lpc2103.cfg

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# NXP LPC2103 ARM7TDMI-S with 32kB Flash and 8kB SRAM, clocked with 12MHz crystal
2
2
 
3
 
if { [info exists CHIPNAME] } { 
 
3
if { [info exists CHIPNAME] } {
4
4
   set _CHIPNAME $CHIPNAME
5
5
} else {
6
6
   set _CHIPNAME lpc2103
15
15
if { [info exists CPUTAPID ] } {
16
16
   set _CPUTAPID $CPUTAPID
17
17
} else {
18
 
   set _CPUTAPID 0x4f1f0f0f 
 
18
   set _CPUTAPID 0x4f1f0f0f
19
19
}
20
20
 
21
21
# LPC2000 -> SRST causes TRST
27
27
 
28
28
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
29
29
 
30
 
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
31
 
 
 
30
set _TARGETNAME $_CHIPNAME.cpu
32
31
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
33
32
 
34
33
# 8kB of internal SRAM
36
35
 
37
36
# 32kB of internal Flash, core clocked with 12MHz crystal
38
37
# flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc_checksum]
39
 
flash bank lpc2000 0x0 0x8000 0 0 0 lpc2000_v2 12000 calc_checksum
 
38
flash bank lpc2000 0x0 0x8000 0 0 $_TARGETNAME lpc2000_v2 12000 calc_checksum