This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: transfer own data via GDB remote protocol, flash a micro
- From: Mark Newman <markn_46 at yahoo dot com>
- To: Torsten Mohr <tmohr at s dot netic dot de>, gdb at sources dot redhat dot com
- Date: Mon, 8 Dec 2003 14:22:38 -0800 (PST)
- Subject: Re: transfer own data via GDB remote protocol, flash a micro
As for reading the numbers:
READ MEMORY
Syntax
m<addr>,<len>
Read len bytes starting at memory address addr.
Reply
hex-data
The values of the requested memory in target byte
order. May be shorter than requested, if some of the
memory could not be read.
E<n>
n == two-digit error code.
NOTE: partial success should be reported as an error.
There is a corresponding write but I am not aware of
anything that supports "flash" burning memory. Is
anyone else aware of anything?
Mark Newman
--- Torsten Mohr <tmohr@s.netic.de> wrote:
> Hi,
>
> lets say i'm building a hardware debugger that
> understands
> GDB remote protocol. And further, that debugger
> needs
> some info about the hardware that it is attached to.
>
> Can i somehow transfer this data via GDB remote
> protocol?
>
> I didn't see anything in the info pages, so i think
> this does not work.
>
> As an example, i may want to tell the hardware the
> target voltage, the quarz frequency, some settings
> like, ...
>
> Another question, is it somehow possible to "flash"
> an attached micro via GDB remote protocol?
>
>
> Best regards,
> Torsten.
>