AT91SAM7S Need example how to send message into debug consol

OP #1172977
Rate this post
useful
not useful
Hello all!
Please help me! I am searching some example how to send messages into
Eclipse debug console from AT91SAM7S64. Something like

dbgprint ("Init complete");
dbgprint ("ADC="); etc

I get example "Gamma" and suspect that dbgu.c is solution for my
problem. But this code is too difficult for me. I can't start it and
there is SPI, Interrupts, timers etc. I need simple and clear code with
"dbgprint" function to include it into my project. And some manual how
to run it.


My hardware and software: Eclipse, Olimex's USB JTAG OCD, Olimex's
SAM7-H64 pcb
Please, give me advice!
Moderator #1172978
Rate this post
useful
not useful
Dima Bulkin wrote:
> Hello all!
> Please help me! I am searching some example how to send messages into
> Eclipse debug console from AT91SAM7S64. Something like
>
> dbgprint ("Init complete");
> dbgprint ("ADC="); etc
>
> I get example "Gamma" and suspect that dbgu.c is solution for my
> problem. But this code is too difficult for me. I can't start it and
> there is SPI, Interrupts, timers etc. I need simple and clear code with
> "dbgprint" function to include it into my project. And some manual how
> to run it.
>
>
> My hardware and software: Eclipse, Olimex's USB JTAG OCD, Olimex's
> SAM7-H64 pcb
> Please, give me advice!

I expect you want to send data though the debug-data-channel. This is
not what the dbgu-functions in the gamma example do - they are just ment
as functions to access the "3rd" UART of the AT91SAM7.

IRC the basic method to output data as DCC-low-low-level-functions in
firmware -> JTAG-Interface -> OpenOCD -> GDB (->Eclipse) has been
discussed in the OpenOCD forum at Sparkfun some day/weeks ago.

Martin Thomas

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now