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 device. Does any one know how I can fix this problem? BTW: The system.h does contain a defintion of the flash:# define EXT_FLASH_NAME "/dev/ext_flash"# define EXT_FLASH_TYPE "altera_avalon_cfi_flash"# define EXT_FLASH_BASE 0x00000000# define EXT_FLASH_SETUP_VALUE 40# define EXT_FLASH_WAIT_VALUE 160# define EXT_FLASH_HOLD_VALUE 40# define EXT_FLASH_TIMING_UNITS "ns"# define EXT_FLASH_UNIT_MULTIPLIER 1# define EXT_FLASH_SIZE 8388608# define EXT_FLASH_CONTENTS_INFO "" Regards, Kwok Wong