Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow to erase the flash on the board?
In Nios, to erase the CFI flash is rather easy; but how to erase the CFI flash when using niosII?
Altera_Forum
Honored Contributor
21 years agoIf you want to wipe out the entire flash you can use this command as well (from the SDK shell):
nios2-flash-programmer --sof=$SOPC_KIT_NIOS2/components/<flash target board directory>/system/<flash target hardware sof> --erase --cable=<Cable Name> --base=<Flash Target> For this you need to find out what the flash target base address is (easiest way to find out is to flash program your board and watch the command lines going by to find out what this value is). This command line program is documented in the Flash programmer guide (which includes what the value <Flash Target> is I believe).