mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Add flash size check for Alveo boards
This commit is contained in:
parent
c2d2b441fb
commit
fca6341636
@ -712,6 +712,13 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
case 0x81:
|
||||
// Alveo boards
|
||||
if (flash_size < 0x01002000)
|
||||
{
|
||||
fprintf(stderr, "Invalid flash size\n");
|
||||
ret = -1;
|
||||
goto skip_flash;
|
||||
}
|
||||
|
||||
flash_segment_count = 2;
|
||||
flash_segment_start[0] = 0;
|
||||
flash_segment_length[0] = 0x01002000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user