Re: Remote Flashing w/ Window Client & OpenOCD
- From: Dominic <Dominic.at.usenet@xxxxxxx>
- Date: Tue, 27 Feb 2007 12:03:31 +0100
Hi,
linnix wrote:
The files (flash.c and stellaris.c) have been modified to support
loading hex file and flashing from target memory.
It seems that flash.c and stellaris.c are not enough for the changes you
made - flash_driver_t is defined in flash.h, and doesn't have a "mode"
member.
The remaining task
is to figure out how to initiate it.
Since OpenOCD supports both GDB and Telnet servers,
we can use either option.
Option 1: Add "$f,<flash addr>,<sram addr>,<count>#XX" on GDB protocol
Option 2: Add "load <flash addr> from <sram add>" on Telnet protocol.
Please comment on the changes and vote for one (the other will have to
wait). Thanks.
Generally, I don't think it should be necessary to modify any of the flash
drivers to support remote downloads. Changes would be necessary to
implement the "flash from RAM" you mentioned, but I'm not sure why you need
that.
I'm currently implementing a file I/O helper that takes care of accessing
the files to avoid having this in every subsystem separately. This could
easily be extended to handle HEX files and possibly ELF files, too.
If remote access is desired, adding [XYZ]Modem support to the telnet
interface might be a straight forward choice, but I'm not sure how
complicated these are.
The new GDB 'f' packet would be more work, because as I understand it the
remote target would have to provide a XML file describing the memory map to
the GDB client.
We also have a mailing list for OpenOCD development at
https://lists.berlios.de/pipermail/openocd-development/ where Magnus
Lundin, the developer of the Cortex-M3 support, is subscribed.
Best 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
- Remote Flashing w/ Window Client & OpenOCD
- Prev by Date: Re: TMS470
- Next by Date: Linux printf funny
- Previous by thread: Remote Flashing w/ Window Client & OpenOCD
- Next by thread: Re: Remote Flashing w/ Window Client & OpenOCD
- Index(es):
Relevant Pages
|