Visible to Intel only — GUID: mwh1416946781172
Ixiasoft
Visible to Intel only — GUID: mwh1416946781172
Ixiasoft
7.10.3.1. alt_get_flash_info()
int alt_get_flash_info ( alt_flash_fd* fd, flash_region** info, int* number_of_regions )
If the call is successful, on return the address pointed to by number_of_regions contains the number of erase regions in the flash memory, and *info points to an array of flash_region structures. This array is part of the file descriptor.
| Address | Block | Time t(0) | Time t(1) | Time t(2) | Time t(3) | Time t(4) |
|---|---|---|---|---|---|---|
| Before First Write | First Write | Second Write | ||||
| After Erasing Block(s) | After Writing Data 1 | After Erasing Block(s) | After Writing Data 2 | |||
| 0x0000 | 1 | Unknown | FF | AA | AA | AA |
| 0x0400 | 1 | Unknown | FF | AA | AA | AA |
| 0x0800 | 1 | Unknown | FF | AA | AA | AA |
| 0x0C00 | 1 | Unknown | FF | AA | AA | AA |
| 0x1000 | 2 | Unknown | FF | AA | FF | FF7 |
| 0x1400 | 2 | Unknown | FF | FF | FF | BB |
| 0x1800 | 2 | Unknown | FF | FF | FF | BB |
| 0x1C00 | 2 | Unknown | FF | FF | FF | FF |
typedef struct flash_region
{
int offset; /* Offset of this region from start of the flash */
int region_size; /* Size of this erase region */
int number_of_blocks; /* Number of blocks in this region */
int block_size; /* Size of each block in this erase region */
}flash_region;
With the information obtained by calling alt_get_flash_info(), you are in a position to erase or program individual blocks of the flash device.