[ECOS]Init-problem with ecos.
Robert Brusa
bob.brusa@gmail.com
Mon Apr 6 14:26:00 GMT 2009
Hi
I encountered problems running my app on my at91sam7x512-based board and
the problem seems to be somewhere in the initialization of ecos. I then
have written a little app which essentially consists of
#include <cyg/infra/diag.h>// no other includes
void cyg_user_start(void)
{
diag_printf("\n%s started\n", thisprog);
myjob(); // consider this a dummy routine for now
diag_printf("\ncmyjob done\n");
}
When running this app, I get the following output:
��Init device '/dev/ser0'
AT91 SERIAL init - dev: fffc0000.6
Set output buffer - buf: 0x00202c80 len: 128
Set input buffer - buf: 0x00202d00 len: 128
Init device '/dev/ser1'
AT91 SERIAL init - dev: fffc4000.7
Set output buffer - buf: 0x00202d80 len: 128
Set input buffer - buf: 0x00202e00 len:
128פÔ���������É��Í
���5)55)5)���������'AT91 SERIAL init - dev: fffc0000.6
Set output buffer - buf: 0x00202c80 len: 128
Set input buffer - buf: 0x00202d00 len: 128
Init device '/dev/ser1'
AT91 SERIAL init - dev: fffc4000.7<cut>.... and it repeats this
When setting a breakpoint at the call myjob() it is reached, but now
output appears on ser1. But debugging this application is tricky, because
it does not show reproducible behaviour. What's going on here?
Robert
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list