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