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

NIOS II/s hang and jump to exception

Altera_Forum
Honored Contributor II
1,184 Views

Hi, 

 

I'm using NIOS II/s on CyclonV. 

My system contain 2 uarts (Baud Rate 115200) and one timer which tick every 20mSec. 

From time to time the nios hang and only restart help. 

When using the debugger and pausing it after the Nios hang the program in excption handler IRQ. 

I checked the program for memory leakage and divide by zero... and found nothing. 

I will appriciate for advises how to find the root cause. 

 

Thanks, 

Erez
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
461 Views

Any news? 

I'm confronting NIOS hangs too - but with other setup. 

How did you overcome it??
0 Kudos
Altera_Forum
Honored Contributor II
461 Views

Hi, 

 

I found out that each time I change the NIOS code it change the behavior of the "hanging" 

So it's hard to find the root couse. 

The thing that solved the problem was: 

1. Shorting the time the nios spent in interrupt to minimum. 

2. I found a line in the code that read from memory that not exist. 

 

Good luck, 

Erez
0 Kudos
Reply