Fixed OpenOCD script to not trash the bootloader.

This commit is contained in:
Dual Tachyon 2023-09-01 14:44:11 +01:00
parent 7a1dea63a5
commit 04a9564583

View File

@ -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