1 ################################################################################
3 ## Copyright (C) 2008-2012 The openOCD Project <http://openocd.sourceforge.net>
5 ## This file is part of openOCD.
7 ## openOCD is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by the Free
9 ## Software Foundation; either version 2 of the License, or (at your option)
12 ## openOCD is distributed in the hope that it will be useful, but WITHOUT ANY
13 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 ## FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 ## You should have received a copy of the GNU General Public License along with
18 ## this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19 ## Place, Suite 330, Boston, MA 02111-1307 USA
21 ################################################################################
23 # STM32f4x stlink pseudo target
26 if { [info exists CHIPNAME] == 0 } {
30 if { [info exists CPUTAPID] == 0 } {
31 set CPUTAPID 0x2ba01477
34 if { [info exists WORKAREASIZE] == 0 } {
35 set WORKAREASIZE 0x10000
38 source [find target/stm32_stlink.cfg]
40 # stm32f4x family uses stm32f2x driver
41 set _FLASHNAME $_CHIPNAME.flash
42 flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME