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

Lasse Conrad lasse.conrad at tonica.dk
Mon Jun 16 15:36:00 CEST 2008


Hi Harald

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.

BTW I am assuming the uart.c example is using:
Bps = 115200, databits 8, parity = non , stopbits=1, flow control = non.

Correct?

Best regards
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: Monday, June 16, 2008 1:18 PM
Til: Ethernut User Chat (English)
Emne: Re: [En-Nut-Discussion] UART example for AT91SAM9260-EK

Lasse Conrad wrote:
> 
> Because I am running my program in SD-Ram and starting it with the Sam-Ba
> tool then the debugger cannot follow it until after it is started. The
> program is simply not there. /blush.

Not sure about this. It may be possible to get an already running 
program under GDB's control, but the normal way is that the debugger 
uploads the code to the target during startup. This requires to 
initialize the SDRAM by the debugger, which is not trivial.

> 
> For example in the events.c code.
> 
>     /*
>      * Endless loop in main thread.
>      */
>     for (;;) {
>         putchar('M');    // <--- Add break point here.
>         NutSleep(125);
>     }

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




More information about the En-Nut-Discussion mailing list