[En-Nut-Discussion] UART example for AT91SAM9260-EK
Lasse conrad
lasse.conrad at aab60.dk
Mon Jun 16 23:25:11 CEST 2008
Hi Lasse here "home email"
Its the example code which its part of the Nut/OS code. Made by you
Harald
C:\ethernut-4.4.1\app\uart\uart.c
...
NutRegisterDevice(&DEV_UART, 0, 0);
uart = fopen(DEV_UART_NAME, "r+");
_ioctl(_fileno(uart), UART_SETSPEED, &baud);
...
The events and the tcps example works fine btw. So it is not some
compiler setup stuff.
After go 0x200... Noting on the Hyperterminal. I can download a Atmel
example (Non Nut/OS application) and get a input/Output over the Uart0
DB9 connector, so my hardware is working and my cable is connected
correct.
Best regards
Lasse
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Harald Kipp
Sent: 16. juni 2008 16:42
To: Ethernut User Chat (English)
Subject: Re: [En-Nut-Discussion] UART example for AT91SAM9260-EK
Lasse Conrad wrote:
> I got the right DB9 connector because I can download an Atmel uart0
> test application which can output something on the UART0. So my
> hardware works fine.
OK, Lasse. How does your UART initialization look like? I mean the lines
similar to
NutRegisterDevice(???, 0, 0);
freopen(???, "w", stdout);
_ioctl(_fileno(stdout), UART_SETSPEED, &baud);
> BTW I am assuming the uart.c example is using:
> Bps = 115200, databits 8, parity = non , stopbits=1, flow control =
> non.
Correct.
Still missing the answer to
> After "go 0x20000000", do you see any serial port output? Otherwise
> make
> sure to use the right DB9 connector.
Harald
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date:
6/16/2008 7:20 AM
More information about the En-Nut-Discussion
mailing list