1 # Hitex stm32 performance stick
3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
6 set _CHIPNAME stm32_hitex
9 if { [info exists ENDIAN] } {
21 #use combined on interfaces or targets that can't set TRST/SRST separately
22 reset_config trst_and_srst
26 if { [info exists CPUTAPID ] } {
27 set _CPUTAPID $CPUTAPID
29 # See STM Document RM0008
31 set _CPUTAPID 0x3ba00477
33 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
35 # The boundery scan register, leave the "expected-id" undefined.
36 jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1
38 # configure str750 connected to jtag chain
39 jtag newtap $_CHIPNAME unknown -irlen 4 -ircapture 0x1 -irmask 0x0f
41 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
42 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
44 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
47 flash bank stm32x 0 0 0 0 0
49 # For more information about the configuration files, take a look at: