Forum Discussion
Altera_Forum
Honored Contributor
21 years agoFailed to open the flash device
Hi, I want to read the flash thru the EPCS device. The HAL alt_flash_open_dev() always returns 0. When I debug/trace the this function call, it seems that the HAL system can not find such ...
Altera_Forum
Honored Contributor
21 years agokwokwong,
I'm afraid your diagnosis is incorrect, The system.h snippet shows that you have a CFI flash in your system, NOT an EPCS. That would require a snippet like # define EPCS_CONTROLLER_NAME "/dev/epcs_controller"# define EPCS_CONTROLLER_TYPE "altera_avalon_epcs_flash_controller"# define EPCS_CONTROLLER_BASE 0x02100000# define EPCS_CONTROLLER_IRQ 5# define EPCS_CONTROLLER_DATABITS 8# define EPCS_CONTROLLER_TARGETCLOCK 20# define EPCS_CONTROLLER_CLOCKUNITS "MHz" Do you have one of these in your system?