FLASH_read
FLASH_read | Reads data from FLASH address | ||
Function |
| void FLASH_read( | |
|
| Uint32 locator, | |
|
| Uint32 | dst, |
|
| Uint32 | length |
| ); |
|
Arguments | locator | Addressing and page information for location in Flash |
|
| memory. |
|
| C6711 DSK |
|
| - FLASH_START_ADDR |
|
| - FLASH_PAGE_ADDR(x) :(x)– page number |
|
| - |
| dst | Destination address |
| length | Length in bytes of data to be read. This is limited by the |
|
| size of the Flash memory. |
Return Value | none |
|
Description | Reads data from the FLASH address (locator) and copies it to a | |
| destination address (dst). This function is limited only by the length of the | |
| FLASH memory. |
|
| Note: This function does not affect unspecified segments of Flash. For | |
| example, altering the lower half of a page of Flash memory does not | |
| change the value of the upper half page. | |
| C6711 DSK |
|
| - locator contains | |
| ||
| - Flash address range: 0x90000000 to 0x90020000 | |
| - FLASH_PAGE_SIZE = 0x80: 128 bytes | |
| - Page number range: 0 to 1023 | |
| ||
| x*FLASH_PAGE_SIZE ) | |
Example | To read from pages 0 and 1 to readBuffer: | |
| char readBuffer[FLASH_PAGE_SIZE*2]; |
FLASH_read(FLASH_PAGE_ADDR(0), (Uint32)readBuffer, FLASH_PAGE_SIZE * 2);
FLASH API Module |