Dirk Behme <[email protected]> wrote on 2009-09-04 09:21:48: > Jonas Horberg wrote: > > Dirk Behme wrote on 2009-09-03 20:17:39: > > > >> David Brownell wrote: > >>> On Monday 31 August 2009, Dirk Behme wrote: > >>>> David Brownell wrote: > >>>>> On Monday 31 August 2009, Dirk Behme wrote: > >>>>>> +jtag_rclk > >>>>>> + > >>>>> needs digits .. > >>>> Hmm, really? Then, jtag_rclk seems to be broken: > >>> I think you're right... > >> ;) > >> > >> What's about applying a patch without digits until jtag_rclk is fixed? > > > > jtag_rclk without a parameter do not request adaptive clocking, it just > > returns the present speed setting (jtag_khz do the same). > > This is not documented in the OpenOCD User's Guide. > > > >> Dirk > >> > >>>> jtag_rclk: > >>>> > >>>> -- cut -- > >>>> RCLK - adaptive > > > > See above. > > > >>>> ... > >>>> Info : clock speed 6000 kHz > > > > This output is from the interface init routine. There were actually no > > request for RCLK or a specific speed before init, so the default speed > > setting is used. > > > >>>> -- cut -- > >>>> > >>>> jtag_rclk 3000: > >>>> > >>>> -- cut -- > >>>> RCLK - adaptive > > > > This really just acknowledge the RCLK request. The interface is not setup > > at this stage, so OpenOCD do not know if it supports RCLK. > > > >>>> ... > >>>> Info : RCLK (adaptive clock speed) not supported - fallback to 3000
> > kHz > > > > As far as I know, the Flyswatter is a FT2232D based interface. FT2232D do > > not support adaptive clocking, so a fallback to the fixed speed is > > expected > > and correct. > > Thanks for the details :) > > Just to check if I understand correctly: > > Flyswatter doesn't seem to support RCLK, so in case of no digits given > to jtag_rclk, the default speed is taken. This seems to be 6000 kHz > here. So what we most probably want is jtag_rclk without a argument always just shows the present speed (even when rclk is supported). The default speed setting is the result of the interface specific speed value 0 (set by jtag_speed). The result for your interface is 6 MHz. > > jtag_rclk 6000 > > (instead of 3000) to use the default speed in case of no RCLK support? You should select to highest frequency the board supports. If you do not know the limit, experiment with different speeds. The maximum speed of the FT2232D is 6 MHz. If this setting works, select it. Someone that can test with a faster interface or knows the limit can later send a patch with a higher speed setting. > > Best regards > > Dirk Best regards Jonas Hörberg _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
