Forum Discussion
Altera_Forum
Honored Contributor
11 years agoDE2-115 USB example problems
I'm trying to run the DE2_115_NIOS_HOST_MOUSE_VGA example but in the c code from the nios II there is an error, in the line
IOWR(CY7C67200_BASE,HPI_MAILBOX,0xCE01); Symbol 'CY7C67200_IF_0_BASE' could not be resolved2 Replies
- Altera_Forum
Honored Contributor
the problem was that i'm using 14.0 Quartus version and example are in 11.1 and the links for the Include files in the Nios project are in "C:/altera/11.1/quartus...", so adding new Include files from "C:/altera/14.0/quartus...". solve the problem
But now when i try to run the project, shows new errors make: *** [../DE2_115_NIOS_HOST_MOUSE_VGA_bsp/-recurs-make-lib] Error 2 DE2_115_NIOS_HOST_MOUSE_VGA C/C++ Problem make: *** [obj/HAL/src/alt_alarm_start.o] Error 1 DE2_115_NIOS_HOST_MOUSE_VGA_bsp C/C++ Problem make[1]: *** [obj/HAL/src/alt_alarm_start.o] Error 1 DE2_115_NIOS_HOST_MOUSE_VGA C/C++ Problem and from the console Compiling alt_alarm_start.c... nios2-elf-gcc -xc -MP -MMD -c -I./HAL/inc -I. -I./drivers/inc -DSYSTEM_BUS_WIDTH=32 -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/HAL/src/alt_alarm_start.o HAL/src/alt_alarm_start.c nios2-elf-gcc: error: unrecognized command line option '-EL' make: *** [obj/HAL/src/alt_alarm_start.o] Error 1 - Altera_Forum
Honored Contributor
Try creating an empty nios C appliction or hello world project and BSP in the software IDE. This will set the compile options as needed for the current version. Then add the your files. This will get everything compiled with command line options used by the current compiler.
You will likely still have problems, but they will be different and hopefully easier to get around.