This is an automated email from Gerrit.

Uwe Bonnes ([email protected]) just uploaded a new patch 
set to Gerrit, which you can find at http://openocd.zylin.com/3378

-- gerrit

commit 41387b5893ed024fb56299c2ced7ff1b18c34e7b
Author: Uwe Bonnes <[email protected]>
Date:   Wed Mar 2 13:36:54 2016 +0100

    tcl/target/stm32f4x.cfg: Use Workareasize of smallest possible device.
    
    Increase workareasize when it is know we have a larger device.
    
    Change-Id: Ieaee92e7cd25cc201989f14de122349698871412
    Signed-off-by: Uwe Bonnes <[email protected]>

diff --git a/tcl/board/stm32f429discovery.cfg b/tcl/board/stm32f429discovery.cfg
index eddaa9f..e06d2a5 100644
--- a/tcl/board/stm32f429discovery.cfg
+++ b/tcl/board/stm32f429discovery.cfg
@@ -7,6 +7,9 @@ source [find interface/stlink-v2.cfg]
 
 transport select hla_swd
 
+# increase working area to 128KB
+set WORKAREASIZE 0x20000
+
 source [find target/stm32f4x.cfg]
 
 reset_config srst_only
diff --git a/tcl/board/stm32f469discovery.cfg b/tcl/board/stm32f469discovery.cfg
index eecfe33..63b1363 100644
--- a/tcl/board/stm32f469discovery.cfg
+++ b/tcl/board/stm32f469discovery.cfg
@@ -7,6 +7,9 @@ source [find interface/stlink-v2-1.cfg]
 
 transport select hla_swd
 
+# increase working area to 128KB
+set WORKAREASIZE 0x20000
+
 source [find target/stm32f4x.cfg]
 
 reset_config srst_only
diff --git a/tcl/board/stm32f4discovery.cfg b/tcl/board/stm32f4discovery.cfg
index f5b5292..963e0f9 100644
--- a/tcl/board/stm32f4discovery.cfg
+++ b/tcl/board/stm32f4discovery.cfg
@@ -5,6 +5,9 @@ source [find interface/stlink-v2.cfg]
 
 transport select hla_swd
 
+# increase working area to 64KB
+set WORKAREASIZE 0x10000
+
 source [find target/stm32f4x.cfg]
 
 reset_config srst_only
diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg
index 19fd76e..14a9b2e 100644
--- a/tcl/target/stm32f4x.cfg
+++ b/tcl/target/stm32f4x.cfg
@@ -15,11 +15,11 @@ if { [info exists CHIPNAME] } {
 set _ENDIAN little
 
 # Work-area is a space in RAM used for flash programming
-# By default use 64kB
+# By default use 32kB (Available RAM in smallest device STM32F410)
 if { [info exists WORKAREASIZE] } {
    set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set _WORKAREASIZE 0x10000
+   set _WORKAREASIZE 0x8000
 }
 
 #jtag scan chain

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to