Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.8.3.2. alt_erase_flash()

alt_erase_flash() erases a single block in the flash memory. The function prototype is as follows:

int alt_erase_flash_block ( alt_flash_fd* fd, int offset, int length )

The flash memory is identified by the handle fd. The block is identified as being offset bytes from the beginning of the flash memory, and the block size is passed in length.