AT91SAM7S Need example how to send message into debug consol

OP #1172977
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
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

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.