]> git.sur5r.net Git - openocd/blob - tcl/target/stm32w108_stlink.cfg
bcm281xx: Add bcm281xx SoC and bcm28155_ap board
[openocd] / tcl / target / stm32w108_stlink.cfg
1 #
2 # STM32W108xx stlink pseudo target
3 #
4
5 if { [info exists CHIPNAME] == 0 } {
6    set CHIPNAME stm32w108
7 }
8
9 if { [info exists CPUTAPID] == 0 } {
10    set CPUTAPID 0x1ba01477
11 }
12
13 if { [info exists WORKAREASIZE] == 0 } {
14    # 4k -- This should work for all chips, though perhaps not optimally
15    set WORKAREASIZE 0x1000
16 }
17
18 source [find target/stm32_stlink.cfg]
19
20 # Use the flash driver from the EM357
21 set _FLASHNAME $_CHIPNAME.flash
22 # 64k (0x10000) of flash
23 flash bank $_FLASHNAME em357 0x08000000 0x10000 0 0 $_TARGETNAME