This is an automated email from Gerrit.

Paul Fertser (fercer...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2446

-- gerrit

commit b9a061a29af708872ea67f5b08e432a83d2429f8
Author: Karl Palsson <ka...@remake.is>
Date:   Tue Dec 9 13:06:21 2014 +0000

    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 <ka...@tweak.net.au>
    Signed-off-by: Paul Fertser <fercer...@gmail.com>

diff --git a/tcl/target/stm32f0x.cfg b/tcl/target/stm32f0x.cfg
index 79ea095..30ea717 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 31c2c5e..46d70b1 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 a4aded0..62e35a4 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 0b3b725..4ad4bd5 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 a7ec5ea..faa6a7e 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 fc2751e..45b3c36 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 8b83d3f..c7fc928 100644
--- a/tcl/target/stm32l1.cfg
+++ b/tcl/target/stm32l1.cfg
@@ -10,11 +10,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32l
 }
 
-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 9ae747c..864917f 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
 

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to