Forum Discussion
Altera_Forum
Honored Contributor
13 years agoDifference between alt_write_flash and alt_erase_flash_block/alt_write_flash_block
Hi, I have read the chapter on writing to Flash in chapter 6-19 of the Nios II Software Developer's Handbook. I understand the problem of overwriting data due to erasing and writing a whole bl...
Altera_Forum
Honored Contributor
13 years agoYou would use the block level API's to construct your own functions for your own purpose.
The "alt_write_flash" is simply a convenience function for a common operation. One easy reason why you might want to not use it would be if you cared about performance while writing large amounts of data (erase+write is faster than the read+memcmp+erase+write which alt_write_flash might do).