From 1663a17d9d5f5988a8d129a6da36ebcf728d79a2 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 9 Dec 2014 13:06:21 +0000 Subject: [PATCH] target/stm32xx: Endian is not configurable. So remove it from all the configs, it's misleading, and leads to cargo culting of config files. Change-Id: I2b77e60d5e96f9759c7c9fc91b20e73be2e95d9a Signed-off-by: Karl Palsson Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2446 Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/target/stm32f0x.cfg | 6 +----- tcl/target/stm32f1x.cfg | 6 +----- tcl/target/stm32f2x.cfg | 6 +----- tcl/target/stm32f3x.cfg | 6 +----- tcl/target/stm32f4x.cfg | 6 +----- tcl/target/stm32l0.cfg | 4 +++- tcl/target/stm32l1.cfg | 6 +----- tcl/target/stm32w108xx.cfg | 6 +----- 8 files changed, 10 insertions(+), 36 deletions(-) diff --git a/tcl/target/stm32f0x.cfg b/tcl/target/stm32f0x.cfg index 79ea0952..30ea7171 100644 --- a/tcl/target/stm32f0x.cfg +++ b/tcl/target/stm32f0x.cfg @@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32f0x } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 4kB diff --git a/tcl/target/stm32f1x.cfg b/tcl/target/stm32f1x.cfg index 31c2c5ef..46d70b1e 100644 --- a/tcl/target/stm32f1x.cfg +++ b/tcl/target/stm32f1x.cfg @@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32f1x } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 4kB (as found on some STM32F100s) diff --git a/tcl/target/stm32f2x.cfg b/tcl/target/stm32f2x.cfg index a4aded00..62e35a4c 100644 --- a/tcl/target/stm32f2x.cfg +++ b/tcl/target/stm32f2x.cfg @@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32f2x } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 64kB diff --git a/tcl/target/stm32f3x.cfg b/tcl/target/stm32f3x.cfg index 0b3b7255..4ad4bd57 100644 --- a/tcl/target/stm32f3x.cfg +++ b/tcl/target/stm32f3x.cfg @@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32f3x } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 16kB diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index a7ec5eab..faa6a7e5 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32f4x } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 64kB diff --git a/tcl/target/stm32l0.cfg b/tcl/target/stm32l0.cfg index fc2751e9..45b3c364 100644 --- a/tcl/target/stm32l0.cfg +++ b/tcl/target/stm32l0.cfg @@ -11,6 +11,8 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32l0 } +set _ENDIAN little + # Work-area is a space in RAM used for flash programming # By default use 8kB (max ram on smallest part) if { [info exists WORKAREASIZE] } { @@ -36,7 +38,7 @@ if { [info exists CPUTAPID] } { swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME +target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 diff --git a/tcl/target/stm32l1.cfg b/tcl/target/stm32l1.cfg index 70e51308..ccbec09d 100644 --- a/tcl/target/stm32l1.cfg +++ b/tcl/target/stm32l1.cfg @@ -10,11 +10,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME stm32l1 } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little # Work-area is a space in RAM used for flash programming # By default use 10kB diff --git a/tcl/target/stm32w108xx.cfg b/tcl/target/stm32w108xx.cfg index 9ae747c5..864917f4 100644 --- a/tcl/target/stm32w108xx.cfg +++ b/tcl/target/stm32w108xx.cfg @@ -34,11 +34,7 @@ if { [info exists CPUTAPID] } { } } -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} +set _ENDIAN little swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID -- 2.39.5