Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

NIOS II/s hang and jump to exception

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Any news?

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

    How did you overcome it??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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