update 'flash bank' usage in scripts
Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the first argument to 'flash bank'.
This commit is contained in:
@@ -45,6 +45,8 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
|
||||
$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
|
||||
|
||||
#flash bank <driver> <base> <size> <chip_width> <bus_width>
|
||||
flash bank str7x 0x20000000 0x00040000 0 0 0 STR75x
|
||||
flash bank str7x 0x200C0000 0x00004000 0 0 0 STR75x
|
||||
set _FLASHNAME $_CHIPNAME.flash
|
||||
flash bank $_FLASHNAME str7x 0x20000000 0x00040000 0 0 0 STR75x
|
||||
set _FLASHNAME $_CHIPNAME.flash
|
||||
flash bank $_FLASHNAME str7x 0x200C0000 0x00004000 0 0 0 STR75x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user