Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Error building SSS in 9.0SP2

Altera_Forum
Honored Contributor II
1,359 Views

Hi All - 

I am getting an error building SSS in 9.0SP2 - the HW I am using is from nios2_linux_3c120_125mhz_sys - the following is what I get when trying to build the app 

 

make -s all includes  

Compiling alt_error_handler.c... 

Compiling iniche_init.c... 

Compiling led.c... 

../led.c: In function `LED7SegLightshowTask': 

../led.c:97: warning: unused variable `led_7_seg_val' 

Compiling network_utilities.c... 

../network_utilities.c: In function `generate_and_store_mac_addr': 

../network_utilities.c:209: error: `EXT_FLASH_NAME' undeclared (first use in this function) 

../network_utilities.c:209: error: (Each undeclared identifier is reported only once 

../network_utilities.c:209: error: for each function it appears in.) 

../network_utilities.c: In function `get_board_mac_addr': 

../network_utilities.c:238: error: `EXT_FLASH_BASE' undeclared (first use in this function) 

../network_utilities.c: In function `FindLastFlashSectorOffset': 

../network_utilities.c:309: error: `EXT_FLASH_NAME' undeclared (first use in this function) 

make: *** [obj/network_utilities.o] Error 1 

 

 

Not certain whats up with the flash interface of why the compiler is bombing on it... I thought these .sopc files and canned examples were better sorted than they are... Any help is appreciated - thanks - crayner 

 

OK so I defined EXT_FLASH_BASE to be the base of the flash interface, and EXT_FLASH_NAME to be '/dev/cfi_flash_64m' and the source builds, however the enet interface hangs upon booting...  

 

Copyright 1996-2008 by InterNiche Technologies. All rights reserved.  

prep_tse_mac 0 

Could not locate flash sector with MAC address. 

prepped 1 interface, initializing... 

[tse_mac_init] 

INFO : TSE MAC 0 found at address 0x08004000 

INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group[0] 

INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0] 

INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... 

INFO : PHY[0.0] - Auto-Negotiation PASSED 

 

 

is as far as I get then HANG....
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
495 Views

yeah, got the same issue. Did you find any soloutoin in the meantime?

0 Kudos
Altera_Forum
Honored Contributor II
495 Views
0 Kudos
Reply