Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

nios stops.

Altera_Forum
Honored Contributor II
1,246 Views

my nios system (fifo, dma, custom component )stops executing at seemingly random times. mostly in the middle of a printf. 

 

can this be because of an interrupt, arent those ignored if i choose not to handle them? what else can it be?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
501 Views

If you are sure about your hardware (timing requirements met, devices fully tested, ...) 

then probably you have a stack overflow. 

Do you use big local variables (struct, arrays), recursive code or a lot of nested calls?
0 Kudos
Altera_Forum
Honored Contributor II
501 Views

hello, 

what do u mean by "nios stops" exactly? means what is the message it displays like "leaving target processor paused" or anything like that or there is no message indication and just disappeared???? 

 

i dnt think u have a bunch of nested calls but instead,u check ur custom component and if possible,just for a moment and remove it from ur system and try to excecute again and see what happens with ur system 

If succeed then u must have some problm in ur custom component only,Check its interface signals with master/slave interface. 

 

Because i think if stack overflow is the cause of an error then it will nt compile in quartus but that depends on ur nios II code length also 

So better is first u remove that component and see what happens. 

 

Hope this will shed some light for ur question.
0 Kudos
Altera_Forum
Honored Contributor II
501 Views

Thanks for replies. reason it stopped was because my custom component stopped giving input, so thats solved.

0 Kudos
Reply