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

Lasse Conrad lasse.conrad at tonica.dk
Mon Jun 16 11:09:00 CEST 2008

Hi Alain

I am using:

Atmel's Evaluation board: AT91SAM9260-EK
Atmel's SAM-ICE Jtag debugger.

I download the software with the Atmel Sam-Ba 2.6 PC program.

I start by selecting the SDRAM Pane and executing the Enable SDRAM 100Mhz

Then I download my program to SDRAM at address 0x20000000.

Then I start the program in the ARM processor with the "go 0x20000000"
command at the console in the Sam-Ba 2.6 program.

And FIRST after this do I start up the debugger.

My Segger J-link GDB server is running all the time.

I am using Eclipse for windows from Yagarto's home page.

I only have one command in the "initialize" commands for the debugger. 

target remote localhost:2331

Now the important part which I self was a bit slow to understand. :-P

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.

This means your break points must be in a part of the code where the
execution is sure to pass.

For example in the events.c code.

     * Endless loop in main thread.
    for (;;) {
        putchar('M');    // <--- Add break point here.

By the way, I have the Nut Os compiled with Build /platform [arm-gccdbg]. 

I hope this helps.

Best regards


-----Oprindelig meddelelse-----
Fra: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] På vegne af Alain M.
Sendt: Friday, June 13, 2008 4:52 PM
Til: Ethernut User Chat (English)
Emne: Re: [En-Nut-Discussion] UART example for AT91SAM9260-EK

Hi Lasse,

Can you debug Nut/OS with JTAG in single step mode? We (Paulo Silva and 
me) are having trouble with that on a SAM9-L9260.

If anyone is able to do it, plase inform,

Lasse Conrad escreveu:
> Hiya
> I have tried the UART example for my AT91SAM9260-EK evaluation board and I
> cannot get it to work. Have anyone else tried the same? 
> The tcps example works fine.
> Best regards
> Lasse
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion

More information about the En-Nut-Discussion mailing list