Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12686 Discussions

brnach offset error with nios2 and nucleus

Altera_Forum
Honored Contributor II
1,173 Views

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!
0 Kudos
0 Replies
Reply