On Saturday 09 January 2010, Esteban Lucchesi wrote:
> I'm using Hitex LPC-Stick (with LPC2468) with OpenOCD. No need to patch
> anything.
> I use only 2 configuration files, as the LPC-Stick is the interface and the
> target at the same time. I attach both.

Interesting.  I think we might want to merge a smarter board config file;
my main issue is that your reset-init event handler doesn't do enough.

Could you change it to:

  - Not do "core_state arm" ... that will already be the
    state when that's called, yes?

  - Set up the clock ... you have an mt_internal_rc routine,
    which is a bit puzzling to me since I think that board
    has a crystal oscillator.  Which says to me the default
    should be to set up the crystal oscillator and PLL.  But
    even if you want to stick to the RC oscillator, this is
    something to set up in reset-init.

  - Once the clock is set up by the reset-init handler, have
    the JTAG clock go faster (why not) than its initial
    slow right-after-reset value.

  - Do the "flash probe" in the reset-init handler, not in
    the clock setup code!

And clean up that lpc-stick.cfg a bit, to remove all the
unused ft2232 layouts ... just do the right one, right at
the top of the file, before you declare the TAP and target.

- Dave


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to