Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

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