Embedded TCP/IP stack  4.7.0

◆ fnet_flash_erase()

fnet_return_t fnet_flash_erase ( void *  flash_addr,
fnet_size_t  bytes 
)

Erases the specified range of the Flash memory.

Parameters
flash_addrAddress in the Flash to erase from.
bytesNumber of bytes to erase in the Flash memory.
Returns
This function returns:
See also
fnet_flash_memcpy()

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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net