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

Ask for help about on-chip memory

Altera_Forum
Contributeur émérite II
1 655 Visites

Hi everyone 

When I used the on-chip memory,I meet the error as following: 

 

D:/QuartusII_project/nios_turorial_2/lights_syslib/Debug/liblights_syslib.a(alt_dev_llist_insert.o)(.text+0xdc): In function `alt_get_errno': 

/cygdrive/d/altera/kits/nios2_51/components/altera_hal/HAL/inc/sys/alt_errno.h:81: Unable to reach errno (at 0x00000024) from the global pointer (at 0x00009a0c) because the offset (-39400) is out of the allowed range, -32678 to 32767. 

 

I want to konw how to deal with the errors.Waiting for help!
0 Compliments
2 Réponses
Altera_Forum
Contributeur émérite II
543 Visites

You should try using the search feature of the forum. Search for "global pointer". There is a lot of information on this topic. 

 

In any case, the -G0 (that's zero) compiler flag should prevent data from being linked into .sdata and/or .sbss. 

 

Cheers, 

 

- slacker
0 Compliments
Altera_Forum
Contributeur émérite II
543 Visites

Oh,I change the memory size to 40K,the problem is solved. 

But,the new problem is coming. 

when I run as niosII-Hardware,the message is as following: 

 

Using cable \"USB-Blaster [USB-0]\", device 1, instance 0x00 

Pausing target processor: not responding. 

Resetting and trying again: FAILED 

Leaving target processor paused 

 

My code is so simple,as following:# include <stdio.h> 

 

int main() 

printf(\"Hello from Nios II!\\n\"); 

 

return 0; 

 

Why?Could you help?
0 Compliments
Répondre