# The standard board has JTAG SRST not connected.
# This script targets such boards using quirky code to bypass the issue.
#
-# Check ST Application Note (FIXME: put reference) on how to fix SRST on
+# Check ST Application Note AN3321 on how to fix SRST on
# the board, then use the script board/spear310evb20_mod.cfg
source [find mem_helper.tcl]
source [find target/spear3xx.cfg]
-source [find chip/st/spear/spear310.tcl]
source [find chip/st/spear/spear3xx_ddr.tcl]
source [find chip/st/spear/spear3xx.tcl]
# Serial NOR on SMI CS0. 8Mbyte.
set _FLASHNAME1 $_CHIPNAME.snor
-flash bank $_FLASHNAME1 spearsmi 0xf8000000 0 0 0 $_TARGETNAME
+flash bank $_FLASHNAME1 stmsmi 0xf8000000 0 0 0 $_TARGETNAME
if { [info exists BOARD_HAS_SRST] } {
# Modified board has SRST on JTAG connector
$_TARGETNAME configure -event reset-init { spear310evb20_init }
proc spear310evb20_init {} {
- reg pc 0xffff0020 # loop forever
+ reg pc 0xffff0020 ;# loop forever
sp3xx_clock_default
sp3xx_common_init