OpenOCD Speed Issues, on linux.

I tried latest openocd patches and able to program my nrf51822 with Jlink SWD

But I get really low speeds, like 0.230 Kb/s If I directly connect programmer to USB port of my PC, laptop…

Than switched to STLink V2, hla swd. It gives ~0.200 Kb/s. Still too low.

If I use USB Hub between PC and the programmer, than speed became ~ 2.3 Kbps (10x faster.) which is weird.

Probably USB HUB caches/buffers next requests, who knows.

But using windows and SEGGER utility, I can easily see > 15 Kb/s.

Not tried to use USB HUB with that setup, or use openocd at windows yet.

Anyone know/have any idea about what I am making wrong?

Thanks.

Found the answer:

http://openocd.zylin.com/gitweb?p=openo … 4b2a1196b3

This patch let me allow upload program at 22 Kb/s! Both on Jlink and STLinkv2.

Much faster than Jlink original program :smiley: