Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFlash memory size...
so i tested my flash memory using the HAL function (using word mode...) ret_code = alt_get_flash_info(fd, ®ions, &number_of_regions); the result was printed as: printf...
Altera_Forum
Honored Contributor
16 years agoregions is in fact a table, so this code:
printf("Offset: %d\r\n", regions.offset);
printf("Region Size: %d\r\n", regions.region_size);
printf("Number of Blocks: %d\r\n", regions.number_of_blocks);
printf("Block Size: %d\r\n\r\n", regions.block_size);with i between 0 and number_of_regions-1, will give you the information about region i.