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?