Erases the specified range of the Flash memory.
- Parameters
-
| flash_addr | Address in the Flash to erase from. |
| bytes | Number of bytes to erase in the Flash memory. |
- Returns
- This function returns:
- See also
- fnet_cpu_flash_write()
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.