This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Init-problem with ecos.
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: MailingList:ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Mon, 06 Apr 2009 16:19:30 +0200
- Subject: [ECOS]Init-problem with ecos.
- Reply-to: Bob dot Brusa at gmail dot com
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