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

« back to all changes in this revision

Viewing changes to tcl/target/telo.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
source [find c100.cfg]
 
2
# basic register defintion for C100
 
3
source [find c100regs.tcl]
 
4
# board-config info
 
5
source [find c100config.tcl]
 
6
# C100 helper functions
 
7
source [find c100helper.tcl]
 
8
 
 
9
 
 
10
# Telo board & C100 support trst and srst
 
11
# Note that libftd2xx.so tries to assert srst
 
12
# which break this script
 
13
# use libftdi.so library instead with this script
 
14
# make the reset asserted to
 
15
# allow RC circuit to discharge for: [ms]
 
16
jtag_nsrst_assert_width 100
 
17
jtag_ntrst_assert_width 100
 
18
# don't talk to JTAG after reset for: [ms]
 
19
jtag_nsrst_delay 100
 
20
jtag_ntrst_delay 100
 
21
reset_config trst_and_srst separate
 
22
 
 
23
 
 
24
 
 
25
 
 
26
# issue telnet: reset init
 
27
# issue gdb: monitor reset init
 
28
$_TARGETNAME configure -event reset-init {
 
29
        jtag_khz 100
 
30
        # this will setup Telo board
 
31
        setupTelo
 
32
        #turn up the JTAG speed
 
33
        jtag_khz 3000
 
34
        puts "JTAG speek now 3MHz"
 
35
        puts "type helpC100 to get help on C100"
 
36
}
 
37
 
 
38
$_TARGETNAME configure -event reset-deassert-post {
 
39
        # Force target into ARM state.
 
40
#       soft_reset_halt # not implemented on ARM11
 
41
        puts "Detected SRSRT asserted on C100.CPU"
 
42
 
 
43
}
 
44
 
 
45
$_TARGETNAME configure -event reset-assert-post {
 
46
  puts "Assering reset"
 
47
  #sleep 10
 
48
}
 
49
 
 
50
proc power_restore {} { puts "Sensed power restore. No action." }
 
51
proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }
 
52
 
 
53
 
 
54
# boots from NOR on CS0:  8 MBytes CFI flash, 16-bit bus
 
55
# it's really 16MB but the upper 8mb is controller via gpio
 
56
# openocd does not support 'complex reads/writes' to NOR
 
57
flash bank cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
 
58
 
 
59
# writing data to memory does not work without this
 
60
memwrite burst disable
 
 
b'\\ No newline at end of file'