Forum Discussion
Altera_Forum
Honored Contributor
21 years agoR/W Filesystem?
I'm currently running the stock FS, built following the instructions in the Getting Started manual. Is there any quick way to make this FS read/write? Changing the kernel command line str...
Altera_Forum
Honored Contributor
21 years agoHi Pankaj,
to erase it, you have to do it directly, whithout any OS. a simple program like this should be enough :#include <stdio.h># include "system.h"# include "sys/alt_flash.h"
int main()
{
alt_flash_fd* flash;
int i;
flash=alt_flash_open_dev(EXT_FLASH_NAME);
for (i=0x500000;i<0x600000;i=i+0x10000)
{
printf("Erase %08x\n",i);
alt_erase_flash_block(flash,i,0x10000);
}
return 0;
} This erases from address 0x500000 to 0x600000 according the erase block size is 0x10000. Regards Pod