Re: Remote Flashing w/ Window Client & OpenOCD
- From: "linnix" <me@xxxxxxxxxxxxxxxxxx>
- Date: 28 Feb 2007 09:31:37 -0800
On Feb 28, 9:05 am, Dominic <Dominic.at.use...@xxxxxxx> wrote:
linnix wrote:
Yes, a write command as well as a erase command.
Alternatively, I can always erase before write.
Currently, I "M 64 bytes" to the server and issue a write.
I ran into a buffer size problem for 128 bytes,
but it could be Window Socket problem.
I need a long delay between command and response,
so bigger buffer size would be better.
The buffer used for packet handling is currently 2048 bytes (GDB_BUFFER_SIZE
in gdb_server.h), enough for ~1000byte of hex-encoded data. The code that
converts the hex string to binary is also rather simple, so that should be
working fine, too.
Got it.
The stupid Window Socket class (somebody's code) uses a 256 bytes
buffer.
I will increase it.
Is vFlash a telnet command?
I would like to have a GDB command,
to avoid opening a different port.
vFlash is part of the GDB remote protocol since version 6.6:http://sourceware.org/gdb/current/onlinedocs/gdb_33.html#SEC673
OK, sound good, will do that.
Note that you don't need to open a telnet port when you want to sent
commands to the OpenOCD's command interpreter - just use GDB's "qRcmd"
packet (monitor <command> from within a GDB session). You could use that to
call a "flash copy ..." command for example.
The only commands that shouldn't be sent via qRcmd are commands that affect
the target state, like resume or reset (without halt/run_and_halt), as the
GDB wouldn't know about the state change.
Regards,
Dominic
.
- Follow-Ups:
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: linnix
- Re: Remote Flashing w/ Window Client & OpenOCD
- References:
- Remote Flashing w/ Window Client & OpenOCD
- From: linnix
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: Dominic
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: linnix
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: Dominic
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: linnix
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: Dominic
- Remote Flashing w/ Window Client & OpenOCD
- Prev by Date: Re: Remote Flashing w/ Window Client & OpenOCD
- Next by Date: Re: PIC vs ARM assembler (no flamewar please)
- Previous by thread: Re: Remote Flashing w/ Window Client & OpenOCD
- Next by thread: Re: Remote Flashing w/ Window Client & OpenOCD
- Index(es):
Relevant Pages
|