flash: add padded_value cmd
This adds support for setting the default value used when padding image sections. Previously 0xff was used but some targets have an erased value of 0x00. Change-Id: If3df6fea3abf95b09daa3ff7be362acf991070ce Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1635 Tested-by: jenkins
This commit is contained in:
@@ -4862,6 +4862,12 @@ specifies "to the end of the flash bank".
|
||||
The @var{num} parameter is a value shown by @command{flash banks}.
|
||||
@end deffn
|
||||
|
||||
@deffn Command {flash padded_value} num value
|
||||
Sets the default value used for padding any image sections, This should
|
||||
normally match the flash bank erased value. If not specified by this
|
||||
comamnd or the flash driver then it defaults to 0xff.
|
||||
@end deffn
|
||||
|
||||
@anchor{program}
|
||||
@deffn Command {program} filename [verify] [reset] [offset]
|
||||
This is a helper script that simplifies using OpenOCD as a standalone
|
||||
|
||||
Reference in New Issue
Block a user