forked from mirror/uv-k5-firmware
Fixed OpenOCD script to not trash the bootloader.
This commit is contained in:
parent
7a1dea63a5
commit
04a9564583
@ -91,7 +91,7 @@ proc write_image {filename address} {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uv_clear_sectors [expr {2*($fs+$_SECTOR_SIZE-1)/$_SECTOR_SIZE}]
|
uv_clear_sectors [expr {(($fs+$_SECTOR_SIZE-1)&(0x10000000-$_SECTOR_SIZE))/($_SECTOR_SIZE/2)}]
|
||||||
uv_flash_unlock
|
uv_flash_unlock
|
||||||
|
|
||||||
set addr $address
|
set addr $address
|
||||||
|
Loading…
Reference in New Issue
Block a user