Altera_Forum
Honored Contributor
13 years agoNios II hanging/crashing on PIO write?
I'm using a DE0-Nano board with a design which includes a NIOS II processor with a PIO module to flash the board's LEDs.
No problems there - processor works, LEDs flash, jolly good. But, I then did the following: - Added a second PIO, 24-bit width output-only, and connected this to a custom hardware module in the project bdf - Added a third PIO, 1-bit width input-only, with interrupt enabled, and connected this to a custom hardware module the project bdf (a clock signal). I made no changes to the NIOS II code, and so I tried to build, download and run the program just to make sure everything still worked. Sure enough, it doesn't. In Debug mode, I see the NIOS II processor seems to lock up the moment it gets to any IOWR routine to write to the PIO for the LEDs (again, there is no code referencing the other PIOs, beyond what is generated by the BSP). What could be causing the CPU to lock up? The lack of an ISR for the interrupt I just created? I thought the interrupt was disabled until I registered it.