On Tuesday 07 July 2009, Øyvind Harboe wrote:
> > Is there some problem the current scheme has?
>
> Yes.
Not according to what you say below ...
> Lets say I have no idea what the default target script does,
> but I know *precisely* what my board needs: srst_only
> srst_pulls_trst.
There's no problem, then. If that's what the board needs,
just say so in its board.cfg file:
reset_config srst_only srst_pulls_trst
It's very rare that any chip config file needs to say anything
about resetting ... since most of the time it's a function of
board wiring.
> What the heck should I write in the board config file to be *sure*
> to override anything that the board config file defined?
If you can't read the board config file you're modifying
to see what it previously defined, you're in trouble. :)
If the issue is how nTRST and nSRST should be driven,
you can specify those too.
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development