> Ok. Hope I got that right. > "init_targets" is the default function to initialize the chip on the > JTAG interface and resides in the target scripts.
Not really. init_targets is perhaps a bad name. It could have been "run default configuration procedure" or some such... "targets" woud be misleading for a configuration script for e.g. FPGA/CPLDs, as it implies a CPU in the OpenOCD context, yet FPGA/CPLDs can use the same mechanism. > "setup_<chipname>" is also an exported function of this script and is > called by "init_targets". There is a subtle point here which is a point of confusion. target/xxx.cfg and board/xxx.cfg could in theory do nothing but export tcl procedures and leave init_targets undefined, it would be up to the user to define the init_targets proc. However, in the spirit of the existing target and board config scripts, it is useful to export a default init_targets proc. The default init_targets proc, replace the current funky default parameters scheme. This init_targets proc is intended to be completely replaced, not invoked, special PCBs. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development