Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Flash memory size...

so i tested my flash memory using the HAL function (using word mode...)

ret_code = alt_get_flash_info(fd, &regions, &number_of_regions);

the result was printed as:

printf("\nFlash Region Structure:\r\n");

printf("Number of Regions: %d\r\n", number_of_regions);

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

THE OUTPUT IS:

Flash Region Structure:

Number of Regions: 2

Offset: 0

Region Size: 65536

Number of Blocks: 8

Block Size: 8192

care some one tell me how this information translates to my flash memory having a 8MB memory???

also what is region size and why my regions is only 2?

11 Replies