Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_flash_erase | ( | void * | flash_addr, |
fnet_size_t | bytes | ||
) |
Erases the specified range of the Flash memory.
flash_addr | Address in the Flash to erase from. |
bytes | Number of bytes to erase in the Flash memory. |
This function attempt to erase the number of bytes
bytes beginning at flash_addr
.
It should be noted that the Flash is block oriented when erasing. It is not possible to erase a few bytes within a page, the whole page will be erased. The flash_addr
parameter may be anywhere within the first page to be erased and flash_addr+
bytes
may be anywhere in the last block to be erased.
Erase page size is defined by FNET_CFG_CPU_FLASH_PAGE_SIZE.