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

« back to all changes in this revision

Viewing changes to tcl/target/lpc2148.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
 
# Use RCLK. If RCLK is not available fall back to 500kHz. 
2
 
 
1
# Use RCLK. If RCLK is not available fall back to 500kHz.
 
2
#
3
3
# Depending on cabling you might be able to eek this up to 2000kHz.
4
4
jtag_rclk 500
5
5
 
6
 
if { [info exists CHIPNAME] } { 
 
6
if { [info exists CHIPNAME] } {
7
7
   set _CHIPNAME $CHIPNAME
8
8
} else {
9
9
   set _CHIPNAME lpc2148
32
32
 
33
33
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
34
34
 
35
 
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
36
 
 
 
35
set _TARGETNAME $_CHIPNAME.cpu
37
36
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
38
37
 
39
38
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
40
39
 
41
40
$_TARGETNAME configure -event reset-init {
42
 
        # Force target into ARM state.
43
 
        soft_reset_halt
 
41
        # Force target into ARM state
 
42
        armv4_5 core_state arm
44
43
 
45
44
        # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
46
45
        # "User Flash Mode" where interrupt vectors are _not_ remapped,
53
52
}
54
53
 
55
54
# flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc_checksum]
56
 
flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765 calc_checksum
 
55
flash bank lpc2000 0x0 0x7d000 0 0 $_TARGETNAME lpc2000_v2 14765 calc_checksum