This is the mail archive of the
mailing list for the eCos project.
i made progresses but now got confused.
- From: wb ning <helloningwb at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 26 Jun 2009 15:29:58 +0800
- Subject: [ECOS] i made progresses but now got confused.
i used at91sam7s. Since i can't run the examples in the ecos examples
directory. That means when i compile and link and got the hello.elf
and then download it to flash. After restart the board, no message
displayed on the hyperterminal.
So i write my own helloecos.c, In the main(), i do the following things:
**open PIO for Uart
**configure uart baudrate and other arguments
**Enable Transmitter and receiver
*printf("Hello, eCos world\n");
Then i compile and link my own helloecos.c and download the
helloecos.elf to flash, After restart the board, The hyperterminal
show the message "Hello, eCos world" correctly.
Then i was confused, my question is:
Why should i init the uart myself? I thought eCos will do that for me,
besides the eCos hello world example on the website don't tell i
should init uart first to see the result.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss