Altera_Forum
Honored Contributor
19 years agoNIOS program deadlocks
Hello folks,
I have an interrupt-based NIOS II program and I'm using the DE2 board. My program works ok sometimes but it seems to deadlock randomly when pushbuttons are pressed or inputs from an external circuit connected to the DE2 board are implemented. I have commented out the printf statements in my interrupt handler function thinking it would solve the problem. It has not. It runs ok for a while and then terminates. I was wondering if my hardware in SOPC had anything to do with it. I'm using SDRAM memory and my reset and exception addresses point to SDRAM. In SOPC builder, I get a warning: "reset address points to volatile memory, execution of undefined code may occur upon reset". I don't know if that should be a problem because I have the reset input permanently tied to VCC and since it's a negative reset, it shouldn't technically reset. I noticed that in the DE2 examples, FLASH memory was used and the reset address points to FLASH and the exception to SDRAM. This is for my senior design project and any suggestions would be deeply appreciated. Thanks.