flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd] / tcl / target / at91sam3nXX.cfg
1
2 #
3 # Configuration for Atmel's SAM3N series
4 #
5
6 if { [info exists CHIPNAME] } {
7         set _CHIPNAME $CHIPNAME
8 } else {
9         set _CHIPNAME at91sam3n
10 }
11
12 if { [info exists CPUTAPID] } {
13         set _CPUTAPID $CPUTAPID
14 } else {
15         set _CPUTAPID 0x4ba00477
16 }
17
18 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
19
20 set _TARGETNAME $_CHIPNAME.cpu
21 target create $_TARGETNAME cortex_m3 -endian little -chain-position $_TARGETNAME
22
23 set _FLASHNAME $_CHIPNAME.flash
24 flash bank flash0 at91sam3 0x00400000 0 0 0 $_TARGETNAME
25
26 # if srst is not fitted use SYSRESETREQ to
27 # perform a soft reset
28 cortex_m3 reset_config sysresetreq
29