On Fri, Jun 27, 2008 at 7:40 PM, Michael Schwingen
<[EMAIL PROTECTED]> wrote:
> Øyvind Harboe wrote:
>> Can you show an example of scripting used in configuration?
>>
>> I'm trying to come up with a killer example :-)
>
> Not pure configuration, but IMHO configuration and commandline usage should
> be the same (as far as possible):
>
> - defining user-defined commands. During development, I often need a sequence
> of 3-4 commands, eg. reset targeet - erase bootloader area - program flash -
> resume target. If I could define my own command for that using the scripting
> language, this would be great.
Hmm... perhaps that could be something....
A target script could define new fn's.
Here is a "target_reset" command in tcl:
proc target_reset {} {
openocd reset
openocd "flash xx"
}
>
> - Production/service environment. A script could reset the target,
>v read the hardware ID, select the approproate files for that hardware, and
> then flash the target. Without scripting, this requires some intelligence
> wrapped around OpenOCD.
>
> - calculating special checksums before flashing, embedding serial numbers
> etc.
> might also be a useful application.
Some good examples there.
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development