]> git.sur5r.net Git - openocd/commitdiff
docs: add stm32 dual bank example
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 8 Mar 2012 12:33:25 +0000 (12:33 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 13 Mar 2012 17:02:22 +0000 (17:02 +0000)
Change-Id: I1dfe134e2c7694fc978d14b4b21bdf9c82ca4b16
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/507
Tested-by: jenkins
doc/openocd.texi

index 0f24f859f69b5282e3cd4513776fd4a88906cec1..71605ecea39fb88e3e5ee6e4b741c0c0bf3ac72b 100644 (file)
@@ -4905,6 +4905,12 @@ the chip identification register, and autoconfigures itself.
 flash bank $_FLASHNAME stm32f1x 0 0 0 0 $_TARGETNAME
 @end example
 
+If you have a target with dual flash banks then define the second bank
+as per the following example.
+@example
+flash bank $_FLASHNAME stm32f1x 0x08080000 0 0 0 $_TARGETNAME
+@end example
+
 Some stm32f1x-specific commands
 @footnote{Currently there is a @command{stm32f1x mass_erase} command.
 That seems pointless since the same effect can be had using the