From 2acf970ab9d7fd01ad53b3601ad35a21d9f91bb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Sun, 11 Oct 2015 02:06:00 +0200 Subject: [PATCH] fm4: Split out S6E2CC family config MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Its memory layout is different from MB9BFxxx. Change-Id: I39c9f9cf582cd182971a9f83bb88c7a18da6cf15 Signed-off-by: Andreas Färber Reviewed-on: http://openocd.zylin.com/3007 Tested-by: jenkins Reviewed-by: Freddie Chopin --- tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg | 5 +++-- tcl/target/fm4_s6e2cc.cfg | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tcl/target/fm4_s6e2cc.cfg diff --git a/tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg b/tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg index 6d805078..4b23146f 100644 --- a/tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg +++ b/tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg @@ -10,9 +10,10 @@ source [find interface/cmsis-dap.cfg] # There's also an unpopulated 10-pin 0.05" pinout. # -# FM4 S6E2CCAJ0A +# FM4 S6E2CCAJ0A w/ 192 KB SRAM0 # set CHIPNAME s6e2cc -source [find target/fm4.cfg] +set WORKAREASIZE 0x30000 +source [find target/fm4_s6e2cc.cfg] reset_config srst_only diff --git a/tcl/target/fm4_s6e2cc.cfg b/tcl/target/fm4_s6e2cc.cfg new file mode 100644 index 00000000..18cc630b --- /dev/null +++ b/tcl/target/fm4_s6e2cc.cfg @@ -0,0 +1,15 @@ +# +# Spansion FM4 S6E2CC (ARM Cortex-M4) +# + +source [find target/fm4.cfg] + +# S6E2CC8 H/J/L have 96 KB SRAM0 +if { [info exists WORKAREASIZE] } { + set _WORKAREASIZE $WORKAREASIZE +} else { + set _WORKAREASIZE 0x18000 +} + +$_TARGETNAME configure -work-area-phys [expr 0x20000000 - $_WORKAREASIZE] \ + -work-area-size $_WORKAREASIZE -work-area-backup 0 -- 2.39.5