flash: read only alias
Similar as virtual flash but has write/erase suppressed. 'virtual' flash driver name check in flash_free_all_banks() was replaced by a customized free_driver_priv() Change-Id: I528760aad0ba55ebc57fc1fabfdfdf07c92cac94 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/5107 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
8ee7cb12cf
commit
2b986178cf
@@ -6160,7 +6160,7 @@ Some drivers also activate driver-specific commands.
|
||||
This is a special driver that maps a previously defined bank to another
|
||||
address. All bank settings will be copied from the master physical bank.
|
||||
|
||||
The @var{virtual} driver defines one mandatory parameters,
|
||||
The @var{virtual} driver defines one mandatory parameter,
|
||||
|
||||
@itemize
|
||||
@item @var{master_bank} The bank that this virtual address refers to.
|
||||
@@ -6178,6 +6178,18 @@ flash bank vbank1 virtual 0x9fc00000 0 0 0 \
|
||||
@end example
|
||||
@end deffn
|
||||
|
||||
@deffn {Flash Driver} ro_alias
|
||||
Similar as @var{virtual} driver but suppresses write
|
||||
and erase. Use to build a complete memory map for gdb.
|
||||
Bank size will be copied from the master physical bank.
|
||||
|
||||
The @var{virtual} driver defines one mandatory parameter,
|
||||
|
||||
@itemize
|
||||
@item @var{master_bank} The bank that this virtual address refers to.
|
||||
@end itemize
|
||||
@end deffn
|
||||
|
||||
@deffn {Flash Driver} read_only
|
||||
A stub driver without write and erase.
|
||||
Use to define a ROM region for the gdb memory map.
|
||||
|
||||
Reference in New Issue
Block a user