Altera_Forum
Honored Contributor
18 years agoDE2_WEB (EXT_FLASH_NAME undeclared)
Hi,
I am a NIOS newbie, tried to build DE2_WEB into NIOS II IDE v6.1. As the terasic provided code was built with v6.0, I regenerated the system in SOPC and recompiled in Quartus II v6.1, Then I tried building the project in NIOS II and I get following errors: ============================================== **** Build of configuration Debug for project web_server_0 **** make -s all Compiling network_utilities.c... ../network_utilities.c: In function `generate_and_store_mac_addr': ../network_utilities.c:196: error: `EXT_FLASH_NAME' undeclared (first use in this function) ../network_utilities.c:196: error: (Each undeclared identifier is reported only once ../network_utilities.c:196: error: for each function it appears in.) ../network_utilities.c: In function `get_board_mac_addr': ../network_utilities.c:225: error: `EXT_FLASH_BASE' undeclared (first use in this function) ../network_utilities.c: In function `FindLastFlashSectorOffset': ../network_utilities.c:358: error: `EXT_FLASH_NAME' undeclared (first use in this function) make: *** [obj/network_utilities.o] Error 1 Build completed in 5.956 seconds ================================================ I checked in "system.h" for flash configuration, it seems fine to me: ================================================ /* * cfi_flash_0 configuration * */ # define CFI_FLASH_0_NAME "/dev/cfi_flash_0"# define CFI_FLASH_0_TYPE "altera_avalon_cfi_flash"# define CFI_FLASH_0_BASE 0x00000000# define CFI_FLASH_0_SPAN 4194304# define CFI_FLASH_0_SETUP_VALUE 40# define CFI_FLASH_0_WAIT_VALUE 160# define CFI_FLASH_0_HOLD_VALUE 40# define CFI_FLASH_0_TIMING_UNITS "ns"# define CFI_FLASH_0_UNIT_MULTIPLIER 1# define CFI_FLASH_0_SIZE 4194304# define CFI_FLASH_0_CONTENTS_INFO "SIMDIR/cfi_flash_0.dat 1130817963"# define ALT_MODULE_CLASS_cfi_flash_0 altera_avalon_cfi_flash ================================================= can anyone please suggest any solution?? Thanks, Mona.