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]

Re: EB40 serial read


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


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