[CCC DEV] Things are working again except for the FFI stuff
Matt Jadud
matt at jadud.com
Thu Jun 10 01:57:35 BST 2010
On Wed, Jun 9, 2010 at 8:29 PM, Dennis Meade <meade.dennis at gmail.com> wrote:
> But when I try to run the mixed C and occam-pi code for servos,I get the
> following error:
>
> tvm-arduino: error status E. ( the entire output of the make follows )
Christian, others: are we able to improve the quality of the error
reporting on failure? (Perhaps in a "-DDEBUG" mode or similar?)
Dennis, this means the VM crashed. With the FFI, it means... either
your C crashed, or something went wrong as you were crossing the
language barrier. Or, perhaps you tweaked an AVR register incorrectly
-- in which case, the processor dumped.
"error status E" is the "catch all" error. Practically useless.
> nothing. If you don't know what it's about off the top of your head, I will
> be uploading my code in a day or two which
> will make it easier to track the error down.
Absolutely. Commit away; it will make it far easier for us to help.
> Part of it may be the FFI. Its use in the Arduino code differs from the two
It almost certainly is.
> articles I found which describe it. I also did not integrate the servo's
> interrupt with the scheduler since the pulses sent to the servo on my servo
> are in the range of 500 to 2500 microseconds.. Added to that this interval
> is broken into 180 increments if you're working in degrees, any extra
> overhead would throw things pretty badly off if I understand things
That sounds sensible. Once code is where we can see it, we can help
make it work.
Cheers,
Matt
More information about the developers
mailing list