Forum Discussion
Altera_Forum
Honored Contributor
15 years agoalt_flash_open_dev
following is my code: # include <stdio.h> # include <stdlib.h># include <string.h># include "system.h" # include "altera_avalon_pio_regs.h" # include "alt_types.h" # include "altera_avalon_perfor...
Altera_Forum
Honored Contributor
15 years agoProvided "/dev/ext_flash" is correctly the name of the sopc device as reported in system.h file (I think you have already checked it...), maybe the problem is that your flash device is not included in the driver CFI table.
What's your flash device part number? Read the de2 board documentation and look if there's a driver patch for the flash. I had to do the same with another eval board. You can also try run in debug mode and step into alt_flash_open_dev in order to find out where the problem exactly is.