]> git.sur5r.net Git - openocd/commitdiff
config: stm32l01x and stm32l02x chips support
authorelmot <elmot@vaadin.com>
Thu, 7 Dec 2017 08:08:28 +0000 (10:08 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 8 Dec 2017 14:59:22 +0000 (14:59 +0000)
New low-end chips have only 2k of RAM, workarea size adjusted

Change-Id: Ibfccd73fef9e6dabffc87d901736c5626ce411fe
Signed-off-by: Ilia Motornyi <elijah.mot@gmail.com>
Reviewed-on: http://openocd.zylin.com/4308
Tested-by: jenkins
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tcl/target/stm32l0.cfg

index 245213b425af400fc21d6f395a16caccc3c690aa..417b282d3838b1c29a8e2ce5b0a6370812fccac2 100644 (file)
@@ -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 8kB (max ram on smallest part)
+# By default use 2kB (max ram on smallest part)
 if { [info exists WORKAREASIZE] } {
    set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set _WORKAREASIZE 0x2000
+   set _WORKAREASIZE 0x800
 }
 
 # JTAG speed should be <= F_CPU/6.