This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

entry point main()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]