Forum Discussion

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

brnach offset error with nios2 and nucleus

I am building our application with nios2 3.3.3 and nucleus plus and get the folliwing errors:

/cygdrive/c/DOCUME~1/CBEAUL~1/LOCALS~1/Temp/ccLu17oL.s:27581: Error: branch offset -40040 out of range -32768 to 32764

/cygdrive/c/DOCUME~1/CBEAUL~1/LOCALS~1/Temp/ccLu17oL.s:27584: Error: branch offset -40156 out of range -32768 to 32764

/cygdrive/c/DOCUME~1/CBEAUL~1/LOCALS~1/Temp/ccLu17oL.s:27587: Error: branch offset -40260 out of range -32768 to 32764

/cygdrive/c/DOCUME~1/CBEAUL~1/LOCALS~1/Temp/ccLu17oL.s:27590: Error: branch offset -40380 out of range -32768 to 32764

....

From what I understand is that we are getting stuff outside the branch range which is 16 bits in this case.

Can we get a branch range of 32 bits somehow?

This is what my compiler line looks like.

NIOS2-ELF-GCC -g -c -G 0 -mno-hw-div -mno-hw-mul -DNU_NO_ERROR_CHECKING -D_POSIX_AC_ -D_WCHAR_T_DEFINED -DMXD_OS_NUCLEUS -D__mips__ -DMXD_BIG_ENDIAN -O0 -g -IC:/Starteam/pkg_MitosFw/DEV_NUCLEUS/LAG/Sources -IC:/Starteam/pkg_MitosFw/DEV_NUCLEUS/LAG/TestCases -I../ -I../../ -I../../../ -I../../../../ -I../../../../../ *.c *.cpp

Unfortunately can't really share what is in the sources unfortunately.

Thanks for any help!
No RepliesBe the first to reply