Re: Remote Flashing w/ Window Client & OpenOCD
- From: "linnix" <me@xxxxxxxxxxxxxxxxxx>
- Date: 28 Feb 2007 07:36:58 -0800
On Feb 28, 4:03 am, Dominic <Dominic.at.use...@xxxxxxx> wrote:
linnix wrote:
Yes, I didn't bother to post the .h, just add the .mode member to it.
I tried contacting you through the form athttp://linnix.com/ocd/but maybe
that didn't work.
Yes, I got that. I've been just too busy to get the code working.
Could you please make sure that the complete source code
used to create the binary you're distributing is available, including the
COPYING file?
OK.
My remote client (on Window) first upload data into target sram, then
issue a command to flash it. Problem with existing code is that the
file must be on the server first.
[snip]
Telnet interface is not as easy as GDB. Packet size and format are
easier to control in GDB, where Telnet can be anything. My Window
client already have GDB and I hate to add another protocol to it.
[snip]
No, the remote client dumps into the target memory directly.
Ah, I never thought of such a scenario. I suppose you're using the GDB
protocol's M or X packet to write target memory, and all you now want to do
is trigger a copy from memory to flash.
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 "clean" approach would be the use of the new vFlash command (I mixed
that up with the "$f,..." you wrote about), but when using a "real" GDB
client that would also require the use of an XML description file that
tells the GDB when to use memory access (M, X) and when to use flash access
(vFlash).
Is vFlash a telnet command?
I would like to have a GDB command,
to avoid opening a different port.
A simpler alternative that's still usefull for other uses would be a "flash
copy <bank> <source-address> <destination-address>" command, if you're
interested in getting these changes upstream. If what you want is a private
fork that's only meant to work with your own Windows client then you can of
course use whatever is easiest for you to implement.
Yes, in fact, I would be storing different version in high flash,
and "test" different versions as needed.
My program currently takes 10K out of 64K.
For now, I just need a quick and dirty fix,
we can think about that later.
Regards,
Dominic
Thanks.
.
- Follow-Ups:
- Re: Remote Flashing w/ Window Client & OpenOCD
- From: Dominic
- 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
- Remote Flashing w/ Window Client & OpenOCD
- Prev by Date: Re: Headhunter irony
- Next by Date: Re: Headhunter irony
- Previous by thread: Re: Remote Flashing w/ Window Client & OpenOCD
- Next by thread: Re: Remote Flashing w/ Window Client & OpenOCD
- Index(es):
Relevant Pages
|