1
0
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:
Alex Forencich 2021-11-18 16:23:37 -08:00
parent c2d2b441fb
commit fca6341636

View File

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