Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Hello World Example doesn't work

Hello together,

I have a problem regarding the function "NIOS II Application and BSP from template" after installing NIOS II EDS 9.1 SP2.

If I want to use the "Hello World" example I get the following error when I try to build the project:

**** build of configuration nios ii for project hello_world ****

make all

info: building ../hello_world_bsp

make --no-print-directory -c ../hello_world_bsp

compiling alt_alarm_start.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 -o0 -g -wall -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/hal/src/alt_alarm_start.o c:/daten/quartus_projekte/dbc3c40_endat22/software/hello_world_bsp/hal/src/alt_alarm_start.c

make[1]: *** [obj/hal/src/alt_alarm_start.o] error 57

make: *** [../hello_world_bsp-recurs-make-lib] error 2

With an older version everything worked fine with the same hardware design.

Where can I find the error codes the compiler generates?

Regards

Thomas

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Thomas

    I got the same problem and would also be keen to know a work around?

    (QuartusII Version 9.1 Build 222 10/21/2009 Full Version)

    //=================================================

    **** Build of configuration Nios II for project niosII_training_project ****

    make all

    Info: Building ../niosII_training_project_bsp

    make --no-print-directory -C ../niosII_training_project_bsp

    Compiling alt_alarm_start.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 -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/HAL/src/alt_alarm_start.o d:/altera_trn/NiosII_HW/NiosII_1Day/NiosII_CIII_3C25/niosII_lab/software/niosII_training_project_bsp/HAL/src/alt_alarm_start.c

    make[1]: *** [obj/HAL/src/alt_alarm_start.o] Error 57

    make: *** [../niosII_training_project_bsp-recurs-make-lib] Error 2

    //=================================================

    Regards

    Geoff