[ECOS] entry point main()

Ali Rodgo alirodgo@web.de
Tue Feb 17 16:45:00 GMT 2004


Hello,
I have made an eCos llibrary with the posix package option as default and after that I have added the serial device driver since i need to open and read for the /dev/ser1 of the AT91EB40A board. The problem is that the program doesn't entry in  the function main() sometimes, sometimes yes but hangs up later.
But if i make an Ecos library with the default package option and run the examples, these work good. 
For example:
include.....
int main(void)
{
int fd;
fd=open("dev/ser1"..........)
...
return 0;

}
I compile the program and no error.
something wrong?I am using Redboot on flash and insight for debugging
I appreciate any kind of help.

______________________________________________________________________________
Ein Grund zum Feiern: Die PC Praxis ermittelt zwischen 10 grossen
Mailprovidern WEB.DE FreeMail als Testsieger http://f.web.de/?mc=021190


-- 
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