> Will I need to provide an individual file for each interface or is there
> some possibility to make this common (e.g. passing the Descriptor via
> command line, or something else)?

You can set a variable that a script can use:

openocd -c "set foo 1; source [find board/myboard.cfg]"

> Another thing is. Currently I have one script for attaching to CPU
> (ommitting the "reset init" command) and one for completely initializing
> the board. Is this something I can control from the command line too or
> how would someone attach to the CPU without reset?

You can use multiple "-c" options to execute multiple commands.

Something like this:

openocd -c "set foo 1; source [find board/myboard.cfg]" -c "reset init"

> Last thing. If I am done with reworking the scripts should I post a git
> pull request or are you prefering patches on the mailing list?

Post a patch to the list. If you want to create a fork of openocd to
maintain/publish your OpenOCD variant, you can do so at:

http://repo.or.cz/w/openocd.git

Though perhaps you want to put in the effort to  create palatable
patches so you don't have to maintain OpenOCD forever?

-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

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