Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

7.10.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.