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

NIOS II IDE program randomly terminates

Altera_Forum
Honored Contributor II
1,367 Views

Hello, 

I'm working on a senior design project with the DE2 board connected to external circuitry. My project is to design a heating controller which recieves inputs from two thermostats and then decides which heating unit to turn on.  

 

In my C code I have a while(1) loop so my program should run forever. However the program stops randomly when the inputs from the external circuitry change. 

 

Any suggestions on why the NIOS II IDE program will suddenly terminate? 

 

Thanks.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
422 Views

Try running in debug mode, press the "play" button to let the software run, then pause it when you know it's safe to do so to take a peak at what's going on. Also I'd put some breakpoints around the code affected by the external stimuli to see if the behavior you expected from your algorithm is indeed happening.

0 Kudos
Altera_Forum
Honored Contributor II
422 Views

 

--- Quote Start ---  

originally posted by badomen@Mar 29 2007, 04:49 PM 

try running in debug mode, press the "play" button to let the software run, then pause it when you know it's safe to do so to take a peak at what's going on.  also i'd put some breakpoints around the code affected by the external stimuli to see if the behavior you expected from your algorithm is indeed happening. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22634) 

--- quote end ---  

 

--- Quote End ---  

 

 

 

Thanks for the reply. I&#39;ll try that out. 

 

I have another question unrelated to this post. For the project I&#39;m working on, I have pushbuttons on the external circuitry which control leds. It turns out that those pushbuttons, which are Single-Pole-Double-Throw (SPDT) are not debounced. Therefore they give multiple outputs when I need clean signals. 

 

Any suggestions on how to build a debounced circuit for the SPDT pushbuttons in Quartus? 

 

 

Thanks. 

Kofi.
0 Kudos
Reply