AnsweredAssumed Answered

Strange looping bug.

Question asked by Wiklund on Nov 13, 2010
Latest reply on Nov 15, 2010 by Wiklund

I'm encountering an odd error with looping and am trying to make sense of it.  Basically, the system starts skipping for-next loops and do-while loops after a call to an assembly language function. 

 

Basically, it goes like this

 

/*  some code */

 

iir32(input,output,filter_struct)

 

for (i=0;i<N;i++)

{

    /* any code */

}

 

Any code following the function call executes, except for the loop.  I also have no problems with loops before the function call.

 

Has anyone encountered anything similar?  I've done various searches as well as gone over the manuals (and example code), and as far as I can tell, I'm exiting the called function correctly.

 

Regards,

   Karl

Outcomes