Altera_Forum
Honored Contributor
15 years agoApp only works under debug
I've come across an interesting problem - I've generated a NIOS II/f core with some basic peripherals such as three PIOs for the toggle switches, red LEDs and 7-segment displays on the DE2-70 board.
Everything is wired up correctly in the Verilog modules which define the hardware and it also programs the board correctly. When I try and create a simple app which assigns the LEDs and 7-segment displays based on the toggle switches (like the tutorial on the DE2-70 board) - almost identical code apart from the fact I'm using the addresses generated in system.h by the SOPC builder, something bizarre happens... Running under debug and stepping through the code the hardware works - changes the displays and LEDs as expected when individual lines of code are executed. When I try and either run continuously under debug or run without debug then nothing works. To add more fun into the mix I'm using Windows 7 x64 as my main system and that took some time to get up and running I can tell you. Using v9.1 of Quartus and NIOS IDE. Does anyone have any ideas why this might be the case? I'm running this over the standard USB blaster cable - which in the departmental labs (running Quartus 8.0 on XP) haven't had an issue but I'd like to use the OpenCores I2C controller which requires Quartus 9.1... Many thanks Ed