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++
12609 Discussions

unable to reach __alt_heap_limit (at xxx) from the global pointer (xxx)

BBS3000
Beginner
187 Views

Hi,

I am porting a legacy NIOS2 project from Cyclone III to Cyclone V and getting a warning

warning: unable to reach __alt_heap_limit (at 0x5ff800) from the global pointer (at 0x4573cc) because the offset (1737780) is out of the allowed range, -32678 to 32767.

The code is "initializing" the heap and iterating from __alt_heap_start to __alt_heap_limit.

Looks like a 16-bit pointers limitation.

Any idea what is the problem?

Thanks!

0 Kudos
1 Solution
BBS3000
Beginner
148 Views

Solved. Apparently -G0 flag was missed so the GPR was used.

View solution in original post

0 Kudos
2 Replies
BBS3000
Beginner
149 Views

Solved. Apparently -G0 flag was missed so the GPR was used.

0 Kudos
aikeu
Employee
117 Views

Hi BBS3000,


I am glad that you have solve the issue, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


Thanks.

Regards,

Aik Eu


0 Kudos
Reply