diff options
author | Andrey Yurovsky <yurovsky@gmail.com> | 2013-10-03 20:41:33 -0700 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-01-09 15:23:27 +0000 |
commit | 215c41c0174e94ab00b36a7d56a054cdd7f30dd0 (patch) | |
tree | f0e4f7d5cb0c6481a0a5e8f27a2c03bfd7bdd64c /tcl/target/at91samdXX.cfg | |
parent | 9cabe333e14435ed9c92bfcf31b1685634ca1acf (diff) |
add support for Atmel SAMD NOR Flash
This adds a new NOR Flash driver, "at91samd", which supports the
built-in Flash on Atmel's D-series Cortex M MCUs, starting with the D20.
Parts and their geometry are detected automatically using the DSU and
lookup schemes described in the D20 document, 42129F–SAM–10/2013.
Future D-series variants and families should presumably use this
controller as well (possibly with minor changes and improvements).
Tested on the SAMD20 Xplained Pro board, for which we also add the
corresponding Flash configuration.
Change-Id: Id8d3dd601e9f53121682d1a1190d0be4ea3b83eb
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-on: http://openocd.zylin.com/1684
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl/target/at91samdXX.cfg')
-rw-r--r-- | tcl/target/at91samdXX.cfg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/target/at91samdXX.cfg b/tcl/target/at91samdXX.cfg index 0a1ef26c..072459df 100644 --- a/tcl/target/at91samdXX.cfg +++ b/tcl/target/at91samdXX.cfg @@ -58,4 +58,5 @@ adapter_nsrst_delay 100 # perform a soft reset cortex_m reset_config sysresetreq -# no flash defined yet +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME at91samd 0x00000000 0 1 1 $_TARGETNAME |