diff options
author | Owen Kirby <oskirby@gmail.com> | 2016-10-25 15:48:56 -0700 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2016-12-08 12:31:14 +0000 |
commit | c591f109c3ad1cdc66b3ba241c6be95f789c3410 (patch) | |
tree | 692a3092ddc1f5361a22f04f962dd0e3aad9c3c0 /tcl | |
parent | aa2c38d50cfc30b651b47cfe93dcc4238c887d68 (diff) | |
download | riscv-openocd-c591f109c3ad1cdc66b3ba241c6be95f789c3410.zip riscv-openocd-c591f109c3ad1cdc66b3ba241c6be95f789c3410.tar.gz riscv-openocd-c591f109c3ad1cdc66b3ba241c6be95f789c3410.tar.bz2 |
at91sam4: Add flash description and chipid for SAM4Cxx variants.
Chip ID and flash layout taken from
Atmel-11102F-ATARM-SAM4C32-SAM4C16-SAM4C8-SAM4C4-Datasheet_27-Mar-15
and tested on a SAM4C32-EK (rev A).
Change-Id: I68aae5b60994c0b5964ea9031d40bc76ba025675
Signed-off-by: Owen Kirby <oskirby@gmail.com>
Reviewed-on: http://openocd.zylin.com/3527
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/target/at91sam4c32x.cfg | 9 | ||||
-rw-r--r-- | tcl/target/at91sam4cXXX.cfg | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tcl/target/at91sam4c32x.cfg b/tcl/target/at91sam4c32x.cfg new file mode 100644 index 0000000..5344e0c --- /dev/null +++ b/tcl/target/at91sam4c32x.cfg @@ -0,0 +1,9 @@ +# script for ATMEL sam4c32, a Cortex-M4 chip +# + +source [find target/at91sam4XXX.cfg] + +set _FLASHNAME $_CHIPNAME.flash0 +flash bank $_FLASHNAME at91sam4 0x01000000 0 1 1 $_TARGETNAME +set _FLASHNAME $_CHIPNAME.flash1 +flash bank $_FLASHNAME at91sam4 0x01100000 0 1 1 $_TARGETNAME diff --git a/tcl/target/at91sam4cXXX.cfg b/tcl/target/at91sam4cXXX.cfg new file mode 100644 index 0000000..3f10c61 --- /dev/null +++ b/tcl/target/at91sam4cXXX.cfg @@ -0,0 +1,7 @@ +# script for ATMEL sam4c, a Cortex-M4 chip +# + +source [find target/at91sam4XXX.cfg] + +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME at91sam4 0x01000000 0 1 1 $_TARGETNAME |