This is an automated email from Gerrit.

Jonathan Dumaresq (jdumar...@cimeq.qc.ca) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/449

-- gerrit

commit adc6079dbe961f898b23b3f0ef2e83393fdffb95
Author: Jonathan Dumaresq <jdumar...@cimeq.qc.ca>
Date:   Mon Feb 13 13:10:31 2012 -0500

    Add the stm32f0x device config file
    
    Change-Id: Ic67919ba778a92e2d8e3e0dbc2ef1c0cfaaf1597
    Signed-off-by: Jonathan Dumaresq <jdumar...@cimeq.qc.ca>

diff --git a/tcl/target/stm32f0x_stlink.cfg b/tcl/target/stm32f0x_stlink.cfg
index 3a007d4..be21d8e 100644
--- a/tcl/target/stm32f0x_stlink.cfg
+++ b/tcl/target/stm32f0x_stlink.cfg
@@ -1,13 +1,24 @@
 #
-# STM32f1x stlink pseudo target
+# STM32f0x stlink pseudo target
 #
 
-set CHIPNAME stm32f0x
+if { [info exists CHIPNAME] } {
+   set _CHIPNAME $CHIPNAME
+} else {
+   set _CHIPNAME stm32f0x
+}
+
+# Work-area is a space in RAM used for flash programming
+# By default use 8kB
+if { [info exists WORKAREASIZE] } {
+} else {
+   set WORKAREASIZE 0x400
+}
+
 set CPUTAPID 0x0BB11477
-set WORKAREASIZE 0x400
 
 source [find target/stm32_stlink.cfg]
 
 # stm32f0x family uses stm32f1x driver
 set _FLASHNAME $_CHIPNAME.flash
-flash bank $_FLASHNAME stm32f1x 0 0 0 0 $_TARGETNAME
+flash bank $_FLASHNAME stm32f1x 0 0 0 0 $_TARGETNAME stm32f0x

-- 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to