I am able to debug using OpenOCD and GDB, but it is a bit slow, and the debugger advises me as follows:
NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.
NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
I checked with the OpenOCD user’s guide, and altered my call to OpenOCD as per instructions from the manual:
I did use the Amontec drivers, but I kept getting an error message from OpenOCD saying, in essence, that it can’t connect to the device. The driver supplied with OpenOCD 0.4.0 from freddiechopin works without trouble. I’m assuming this problem stems from something amiss with my setup, but I have not been successful in sorting it out. Shouldn’t it just be a case of installing the driver and go? Would there be a difference between JTAG key and JTAG key 2? There could, I suppose, be a speed advantage with using the Amontec driver, but rather a slow driver over one that doesn’t work…
It’s said in milions of places - OpenOCD can be compiled for libusb-win32 or for ftd2xx. My compilation uses libusb-win32 drivers, amontec drivers use ftd2xx - it’s just impossible to “match” those. You need to recompile OpenOCD yourself to use that drivers. The flashing will be a_bit - 2x faster (depending on lots of factors), so if the flashing takes less than 10s and you don’t flash chips for a living there’s no point in trying to recompile OpenOCD if you don’t know how…
It’s a pity Amontec didn’t certify libusb-win32 drivers, knowing that currently OpenOCD cannot be distributed with ftd2xx…
Mmm, yes quite. I suppose one could use the package of OpenOCD that Amontec supplies to their customers (I’m talking about the sdk4arm package here), but it hasn’t been updated for over three years?