[En-Nut-Discussion] UART example for AT91SAM9260-EK

Lasse Conrad lasse.conrad at tonica.dk
Thu Jun 19 14:48:57 CEST 2008


Hi Harald

I got my code to work.. thanks for the support :-)

Lasse.

-----Oprindelig meddelelse-----
Fra: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] På vegne af Harald Kipp
Sendt: Wednesday, June 18, 2008 9:26 AM
Til: Ethernut User Chat (English)
Emne: Re: [En-Nut-Discussion] UART example for AT91SAM9260-EK

Lasse conrad wrote:
> 
> ...
> NutRegisterDevice(&DEV_UART, 0, 0);
> uart = fopen(DEV_UART_NAME, "r+");
> _ioctl(_fileno(uart), UART_SETSPEED, &baud);
> ...

But in that case putchar() will not work unless you assign stdout to the 
uart FILE handle. See page 35 of the Ethernut Software Manual.

> The events and the tcps example works fine btw. So it is not some
> compiler setup stuff.

Also make sure, that stdio functions are supplied by Nut/OS libraries 
(libnutcrt), not by newlib. You can check this in the map file.

Harald


_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list