EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91SAM7S Need example how to send message into debug consol


Author: Dima Bulkin (mrengineer)
Posted on:

Rate this post
0 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!

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.