From: Michael S. <rin...@di...> - 2008-06-27 19:45:17
|
Ø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. - Production/service environment. A script could reset the target, 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. cu Michael |