Forum Discussion

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

NIOS Build Problem

Hi,

I am trying to make a build on NIOS 3.2..

While compiling core, SDK Shell is giving following messages..

Its not generating '.srec' file.. Please suggest me whats the problem.

--------------------

Beginning Build

--------------------

Sources:

bcd_ieee754_converter.c

i2c.c

ls_mngr.c

spi_mngr.c

main.c

# 2006.10.20 00:23:15 (*) nios-elf-gcc -I .. -I ../.. -I ../inc -I ../../inc -I ../../../inc -I ../../../../inc -I ../../../../../inc -W -Wno-multichar -g -mno-zero-extend -O2 -m32 bcd_ieee754_converter.c -o bcd_ieee754_converter.c.o -c

# 2006.10.20 00:23:15 (*) nios-elf-gcc -I .. -I ../.. -I ../inc -I ../../inc -I ../../../inc -I ../../../../inc -I ../../../../../inc -W -Wno-multichar -g -mno-zero-extend -O2 -m32 i2c.c -o i2c.c.o -c

# 2006.10.20 00:23:16 (*) nios-elf-gcc -I .. -I ../.. -I ../inc -I ../../inc -I ../../../inc -I ../../../../inc -I ../../../../../inc -W -Wno-multichar -g -mno-zero-extend -O2 -m32 ls_mngr.c -o ls_mngr.c.o -c

# 2006.10.20 00:23:16 (*) nios-elf-gcc -I .. -I ../.. -I ../inc -I ../../inc -I ../../../inc -I ../../../../inc -I ../../../../../inc -W -Wno-multichar -g -mno-zero-extend -O2 -m32 spi_mngr.c -o spi_mngr.c.o -c

# 2006.10.20 00:23:16 (*) nios-elf-gcc -I .. -I ../.. -I ../inc -I ../../inc -I ../../../inc -I ../../../../inc -I ../../../../../inc -W -Wno-multichar -g -mno-zero-extend -O2 -m32 main.c -o main.c.o -c

# 2006.10.20 00:23:16 (*) nios-elf-ld -e _start -u _start -g -T e:/altera/quartus60/sopc_builder/bin/excalibur.ld ./obj32/nios_jumptostart.s.o bcd_ieee754_converter.c.o i2c.c.o ls_mngr.c.o spi_mngr.c.o main.c.o --start-group -l nios32 -l c -l m -l gcc --end-group -L/cygdrive/e/altera/kits/nios/bin/nios-gnupro/nios-elf/lib/m32 -L/cygdrive/e/altera/kits/nios/bin/nios-gnupro/lib/gcc-lib/nios-elf/2.9-nios-010801-20030718/m32 -L../lib -L../../lib -L../../../lib -L../../../../lib -L../../../../../lib -L../inc -L../../inc -L../../../inc -L../../../../inc -L../../../../../inc -L. -o main.out

# ## nios-build error: last system call returned256

# ## (Perhaps you need ".global _start" and "start:")

spi_mngr.c: In function `spi_isr':

spi_mngr.c:140: warning: `freqbasechg_sts' might be used uninitialized in this function

spi_mngr.c:140: warning: `freqoffchg_sts' might be used uninitialized in this function

nios-elf-ld: cannot open ./obj32/nios_jumptostart.s.o: No such file or directory

Died at - line 85.

2 Replies

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

    Very complicated and designated message, looks like you are missing .o file for standard Nios II component.

    You can check the system library of your Nios II project, if missing specific file I will suggest reinstallation.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Where is this nios_jumptostart.s supposed to come from? If it's yours, try changing the .s to .S (capital S).