jtag: gw5xxx.cfg

File gw5xxx.cfg, 758 bytes (added by trac, 14 months ago)
Line 
1adapter_khz 1000
2
3reset_config trst_and_srst separate
4
5# MSP430FR5857
6jtag newtap msp gsc -irlen 8 -ircapture 0x91 -irmask 0xff
7
8proc fwd {n} {
9    for {set i 0} {$i < n} {set i [expr $i+1]} {
10        step
11    }
12}
13
14proc imx6_dbginit {} {
15    # General Cortex A8/A9 debug initialisation
16    cortex_a dbginit
17}
18
19# Function sets MSP430FR5857 into JTAG4 and resets this board
20proc init_reset {mode} {
21    echo "default"
22    jtag_reset 0 0
23    echo "srst low"
24    jtag_reset 0 1
25    sleep 500
26    echo "srst high"
27    jtag_reset 0 0
28    sleep 1
29    echo "srst low"
30    jtag_reset 0 1
31    sleep 500
32    echo "toggle trst"
33    jtag_reset 1 1 0 1
34    echo "srst high"
35    jtag_reset 0 0
36    sleep 10
37}
38
39proc jtag_init {} {
40    init_reset startup
41    jtag arp_init
42}