Starting a new thread on a crazy idea I had to help alleviate
problems with coming up with the reset init sequence.

Lots of hardware out there have working .elf files that set up
the hardware.

What if a known working elf image could be used instead of
having to first succeed in writing a reset init sequence?

What if the init sequence could be extracted automatically
from such an image?

Rough idea:

- an elf file is loaded into the OpenOCD host memory
- simulation then starts at some address within the elf image
- memory accesses inside the address range of the elf
image are handled by the simulator reading/writing into the
elf image stored in OpenOCD host memory
- memory accesses outside the address range of the
elf image are directed to the target
- add some capability of interactivity and good debug output.
The seasoned embedded engineer should then be able
to massage the result of this simulation into a working
reset script with moderate effort.



This would not be a tool for those that "just want something
that works out of the box", but rather an alternate path to
creating config scripts that are included with OpenOCD.


Perhaps it would be able to do away with the simulation
bit here. Clearly there are elf images that will not work
in simulation mode... The trick with running an elf image
without a working reset init sequence is that the elf image
might be designed to run out of flash/rom.


-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to