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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.