X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fstm32lx_stlink.cfg;h=0bd59b4abe7b746d904c8c033857fb93ae1869e3;hp=ed9865d068939db9abf64996e56f699561bc65f4;hb=79d6d3cda90c6694343bde909978069994049ab7;hpb=54a8640df0420185962e1c31936f2c691de4167a diff --git a/tcl/target/stm32lx_stlink.cfg b/tcl/target/stm32lx_stlink.cfg index ed9865d068..0bd59b4abe 100644 --- a/tcl/target/stm32lx_stlink.cfg +++ b/tcl/target/stm32lx_stlink.cfg @@ -11,11 +11,23 @@ if { [info exists CPUTAPID] == 0 } { } if { [info exists WORKAREASIZE] == 0 } { - set WORKAREASIZE 0x3800 + set WORKAREASIZE 0x2800 } source [find target/stm32_stlink.cfg] +# Flash base address is known by driver. Flash size will be probed. +# +# Please note that the larger stm32lx targets (256Kb and 384Kb) uses dual +# bank flash. For such targets use target/stm32lx_dual_bank.cfg. +# +# Some samples of ST's stm32lx chips are known to have incorrect flash size +# values programmed in their FLASH_SIZE register. The driver will warn +# for strange values. It is possible to override the flash size probe by +# defining the correct size here. Notice though that it is the size of +# the flash bank +# +# flash bank stm32lx 0 0 set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME stm32lx 0 0 0 0 $_TARGETNAME