target/stm32xx: Endian is not configurable. 46/2446/2
authorKarl Palsson <karlp@remake.is>
Tue, 9 Dec 2014 13:06:21 +0000 (13:06 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 15 Jan 2015 23:26:18 +0000 (23:26 +0000)
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 <karlp@tweak.net.au>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2446
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/target/stm32f0x.cfg
tcl/target/stm32f1x.cfg
tcl/target/stm32f2x.cfg
tcl/target/stm32f3x.cfg
tcl/target/stm32f4x.cfg
tcl/target/stm32l0.cfg
tcl/target/stm32l1.cfg
tcl/target/stm32w108xx.cfg

index 79ea0952d36d62ddd81de73f0fe5dcdebde4cf1f..30ea717172fb2e762da2f53fb2abfdc513fb4fce 100644 (file)
@@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32f0x
 }
 
    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
 
 # Work-area is a space in RAM used for flash programming
 # By default use 4kB
index 31c2c5efdf65b850c8d1b6753624d03a52a55adf..46d70b1ed6d93e8c27d31fe84b2db9427cf0a289 100644 (file)
@@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32f1x
 }
 
    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)
 
 # Work-area is a space in RAM used for flash programming
 # By default use 4kB (as found on some STM32F100s)
index a4aded007c576e75c39652b369052f723c26de1a..62e35a4c44ed2e19d52f8ed8e3ef226ff643da9c 100644 (file)
@@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32f2x
 }
 
    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
 
 # Work-area is a space in RAM used for flash programming
 # By default use 64kB
index 0b3b7255f25829f415140c69cb973bdd3958566d..4ad4bd5736ce8cc169ee51e7ec7fe77ec8fb3448 100644 (file)
@@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32f3x
 }
 
    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
 
 # Work-area is a space in RAM used for flash programming
 # By default use 16kB
index a7ec5eab3e18e5f59c3724c42520ed614cd933a9..faa6a7e595f0fd65dd5f10fd4d77dc2f80f3e820 100644 (file)
@@ -11,11 +11,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32f4x
 }
 
    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
 
 # Work-area is a space in RAM used for flash programming
 # By default use 64kB
index fc2751e9585081dd54e8d5179561962b96861712..45b3c364cff98a49191c128f05a28042b867e221 100644 (file)
@@ -11,6 +11,8 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32l0
 }
 
    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] } {
 # 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
 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
 
 
 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
 
index 70e51308008473d7b2d316c2ed0bc9b723f54627..ccbec09d2ededcdb7aeccac3547eb3a679b0afef 100644 (file)
@@ -10,11 +10,7 @@ if { [info exists CHIPNAME] } {
    set _CHIPNAME stm32l1
 }
 
    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
 
 # Work-area is a space in RAM used for flash programming
 # By default use 10kB
index 9ae747c5a8ee91e2b316a1ec10c4c85ce23de30b..864917f4fcec5256c0487f2724ae720dbe271e19 100644 (file)
@@ -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
 
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)