I discovered the problem testing http://openocd.zylin.com/2604 on top of fresh git master.
at91sam4lXX.cfg includes at91sam4XXX.cfg and it sets adapter_khz 500
Changed version of at91sam4lXX.cfg adjusts to adapter_khz 50 for low initial clock of "L" version. Works on ftdi, without an effect on vsllink. Basically you can try any SWD-connected MCU and change adapter_khz manually after init to minimum and compare speed of mdw before and after
(or better use an oscilloscope)

Tom

On 15.3.2015 14:33, Simon Qian wrote:
I will do a test by connecting telnet, and modify the adapter_khz and do a mdw command, and will report the result tomorrow.

------------------------------------------------------------------------
open...@versaloon.com

    *From:* Simon Qian <mailto:open...@versaloon.com>
    *Date:* 2015-03-15 19:55
    *To:* Tomas Vanek <mailto:tom_...@users.sourceforge.net>
    *CC:* openocd-devel <mailto:openocd-devel@lists.sourceforge.net>
    *Subject:* Re: [OpenOCD-devel] vsllink silently ignores changes in
    adapter_khz after init
    Do you have the script? I will do the same test.

    ------------------------------------------------------------------------
    open...@versaloon.com

        *From:* Tomas Vanek <mailto:tom_...@users.sourceforge.net>
        *Date:* 2015-03-15 19:43
        *To:* Simon Qian <mailto:open...@versaloon.com>
        *CC:* openocd-devel <mailto:openocd-devel@lists.sourceforge.net>
        *Subject:* Re: vsllink silently ignores changes in adapter_khz
        after init
        Yes, I tested it only on swd. swd keeps the speed set in init.

        Tom

        On 15.3.2015 12:32, Simon Qian wrote:
        Hi,
        I remember vsllink can support changing the JTAG speed.
        I will do a test and reply soon.

        ------------------------------------------------------------------------
        open...@versaloon.com

            *From:* Tomas Vanek <mailto:tomas.va...@fbl.cz>
            *Date:* 2015-03-15 18:35
            *To:* Simon Qian <mailto:open...@versaloon.com>
            *CC:* OpenOCD ML <mailto:openocd-devel@lists.sourceforge.net>
            *Subject:* vsllink silently ignores changes in
            adapter_khz after init
            Hi Simon,
            would be possible to implement changing of vsllink speed
            on the fly?
            Some MCUs running at low clock freq after reset need it.
            It also breaks some configs where one speed is set in
            included cfg and
            then changed to another.
            Thanks
                 Tom



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to