Page 1 of 1

Runs ok in HW but not in simultator

Posted: Sat May 29, 2010 5:23 pm
by iain wilkie
This program assembles ok and downloads into my hardware where it seems to run fine.
However if I run it in the simulator it runs to a point where it gets caught in a loop where
it is sitting at the END of "READ_ANALOGUES" macro where it seems to never return back to the "RAMP_UP"
program. While it sits there, the interrupt routine macro kicks in (thats ok).

Any thoughts ????

Iain

Re: Runs ok in HW but not in simultator

Posted: Tue Jun 01, 2010 10:47 am
by Benj
Hello Iain,

If you pause the program and start stepping through then you will see that the simulation does leave the macro. When the simulation is running full speed you do not see the window change. However if you reduce the speed of the simulation via the project options window then you will be able to reduce the simulation running speed to allow you to see the simulation working correctly.

Re: Runs ok in HW but not in simultator

Posted: Tue Jun 01, 2010 11:52 am
by iain wilkie
Hi Ben,

Thats what I was doing .... stepping through .... even from the beginning of the program. I'll try it again with the sim speed turned back.

Iain

Just tried that and its exactly the same, gets to the end of the Read Analogues Macro and never returns to the Rampup macro !
:x
Iain

Re: Runs ok in HW but not in simultator

Posted: Tue Jun 01, 2010 4:28 pm
by Benj
Hello Iain

Ok sorry I have spotted and rpelicated the problem now. I will pass it onto the Flowcode engineers and see if we can find out why this problem is happening. From the offset it looks like the interaction between the simulation of the interrupt and the end of the macro is causing a bit of a problem.