Forum Discussion
Altera_Forum
Honored Contributor
12 years agoIn General you do not want to disable the erase option, for flash devices. You must at least erase the portion of the flash being programmed by the POF, because of the way FLASH works.
Typically with FLASH devices, a cell is ERASED to all 1's IE 0xFFFFFFF, when you program the device, you can flip bits from the 1 to zero state, but not from 0 to 1. So you say you wanted if the byte had the data 0x55 in it, and you reprogrammed it as 0xAA, you would get 0x00, instead of 0xAA unless you erased that block first. That being said, there are cases, where your flash is segregated into separate regions with different functions: IE FPGA, Software, Configuration Data Region. where you may want to only re-program one of the regions. Typically I've used the nios2-flash-program for this task. nios2-flash-programmer --epcs --base=0x1800 filname.sof.flash so I can't directly answer your quartus_pgm question, but there are ways to do it. Regards, Pete