On Thu, Apr 8, 2010 at 2:48 AM, michal smulski <[email protected]> wrote:
>
>
> Here is a patch that adds file_offset to load_image command.
> This allows loading 'bin' regions that do not start at 0x0 file offset.
> I use this to create a simple flash driver in tcl. It load chunks of the
> bin file to memory and burn them to flash. This is saved me a quite a
> bit of time as I did not have to write a full flash driver in openocd.

I think I'd prefer to see this implemented in a more general fashion, it
looks a bit hacked in there...

I recall having a need at one point to "crop" load_image where I would
load only part of an image into an area in memory.

Perhaps with an argument for max and min address to write to, keeping
the current offset? That concept would work for all file types...

Perhaps load the image into tcl objects so small tcl'lets can be written
to do anything out of the ordinary?

-- 
Meet us in Paris at rts EMBEDDED SYSTEMS 2010 - March 30. and April 1.
http://www.zylin.com/events_rts.html

Øyvind Harboe
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to