This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: EB40 serial read
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Xavier Thomas <thomasxa at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 23 May 2003 01:46:26 +0100
- Subject: Re: [ECOS] EB40 serial read
- References: <Law14-F106lbpbOG8Oz0000a048@hotmail.com>
Xavier Thomas wrote:
Hello
I'm working with a AT91EB40 board and I try to receive data from de
serial port.
The write work correctly but the read block the program. I load the
program with
gdb and I start it with minicom and redboot.
[snip]
Your program runs entirely from cyg_user_start. As described in the
documentation, the kernel hasn't started yet, and in particular interrupts
aren't enabled so it's no surprise it doesn't work!
Run your program from a thread, not from cyg_user_start, or enable
interrupts manually.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss