mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2024-11-21 05:30:49 +08:00
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
|
||||
}
|
||||
}
|
||||
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
|
||||
|
||||
set addr $address
|
||||
|
Loading…
Reference in New Issue
Block a user