Altera_Forum
Honored Contributor
15 years agoError compiling BSP for Igor Opencores Macq
I'm trying to get a Cyclone II FPGA connected to a National Semiconductor DP83848 Evaluation kit to work. Struggled with it a bit and so far no luck.
I'm trying to get the "Simple Socket Server" example to work because the threads at http://www.alteraforum.com/forum/showthread.php?t=21005&referrerid=2226 and http://www.alteraforum.com/forum/showthread.php?t=3665&page=3 recommend that as a starting point. But I cannot get the BSP to compile. I'm using version 9.1 of the tools because that is what the core was designed for. I get the error:
c:/Users/Public/Documents/LTM/LTM-svn/FPGA_Projects/NIOS_Ethernet/software/test_cpu_91_bsp/drivers/src/eth_ocm_phy.c
c:/Users/Public/Documents/LTM/LTM-svn/FPGA_Projects/NIOS_Ethernet/software/test_cpu_91_bsp/drivers/src/eth_ocm_phy.c: In function `eth_ocm_phy_init':
c:/Users/Public/Documents/LTM/LTM-svn/FPGA_Projects/NIOS_Ethernet/software/test_cpu_91_bsp/drivers/src/eth_ocm_phy.c:160: error: structure has no member named `phyadd'
So I found the definition of the dev structure in eth_ocm.h: typedef struct{
alt_u32 base;
alt_u8 irq;
char name;
} eth_ocm_dev; and it appears to me that the error is correct. Any ideas what I am doing wrong? Not sure it if is related but here is a snippet from the output of the build command: Compiling eth_ocm_phy.c...
nios2-elf-gcc -xc -MP -MMD -c -I. -I./drivers/inc -I./HAL/inc -DSYSTEM_BUS_WIDTH=32 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -DALTERA_TRIPLE_SPEED_MAC -DETH_OCM_PHY_MAX_PROFILES=3 -DETH_OCM_PHY_SUPPORT_DP83848C -DETH_OCM_PHY_SUPPORT_MVL88E1111 -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/drivers/src/eth_ocm_phy.o To me it looks wrong to have -DALTERA_TRIPLE_SPEED_MAC and -DETH_OCM_PHY_SUPPORT_MVL88E111 but I did not define those. I've looked but cannot find where to turn those off. Edit: I figured out where to turn those off but it does not seem to make a difference on my error. edit 2: Should I be defining ALT_INICHE so that it triggers the inclusion of ins_eth_ocm.h? Any help appreciated, David