Sunday, July 5, 2009

OpenOCD -- a promissing project

Project website:
http://openocd.berlios.de/web/
http://developer.berlios.de/projects/openocd

Mailing list archive
https://lists.berlios.de/pipermail/openocd-development/

Forum
http://forum.sparkfun.com/viewforum.php?f=18

I started to really trying it out (with J-Link) this May. It has really progressed very fast. Before that, it did not work at all with J-Link V3. Now I can use J-Link (V3, V6 and V7) with several targets I have (STM3210E-Eval, TMS470R1A256, ADuC7060 and LPC-2148) under Linux (and Windows). I am still in the process of learning to use OpenOCD but I can see it as a very promissing project.

V0.2 is slated to be released any time now.

In the future, I would like to see a more stable J-Link driver.

On the other front, right now it used libusb 0.1 and libusb-win32 0.1 and synchronous USB I/O. In the future, maybe it can be switched to libusb 1.0 under Linux and Mac OS X and use asynchronous USB I/O to boost the performance.

For FTDI2232x based JTAG debuggers, right now it uses either FTD2XX (proprietory) or libftdi+libusb 0.1. Hopefully the features of libftdi can be improved to match the performance of FTD2xx, especailly under Windows. The situation is rather complicated under Windows due to the fact that libftdi uses libusb-win32 and libusb-win32 does not work under Vista 64 right now. Maybe WinUSB is a better solution (for XP/Vista and later).

Sunday, June 14, 2009

Vista SP2 installed

Just installed Vista SP2 but I did not notice any differences yet.

You can either use Windows updates or use the download here.
http://technet.microsoft.com/en-us/windows/dd262148.aspx

Saturday, May 16, 2009

LPC-2148 USB Isochronous Examples based on lpcusb

Today I read an interesting article from Linux Journal.
http://www.linuxjournal.com/article/10421

In the article, there is an interesting example of Isochrouns USB Transfer example based on lpcusb. So I use lpc21isp and download the code to my Olimex LPC-P2148 board which the developers are also using. They have also the Linux host example based on usbfs which seems to work right out of the box. Now I need to read the firmware in more detail.

There are also quite some examples from the psas site.
http://psas.pdx.edu/

lpcusb (get the svn version)
http://sourceforge.net/projects/lpcusb

lpc21isp
http://sourceforge.net/projects/lpc21isp

Sunday, May 3, 2009

libusb related wrappers or bindings

Most of the following libusb wrapper/binding work with both libusb and libusb-win32 0.1 version. As far as I know, there are no libusb wrapper/bindings yet for the new libusb-1.0 (currently only Linux and Mac OS X) or Openusb (currently only Linux and Solaris).

Python -- pyusb
http://pyusb.berlios.de/

Python -- bitpim libusb wrapper with swig
http://bitpim.svn.sourceforge.net/viewvc/bitpim/trunk/bitpim/src/native/usb/

Perl -- Device::USB
http://code.google.com/p/perl-device-usb/
http://search.cpan.org/~gwadej/Device-USB-0.29/lib/Device/USB.pm

Ruby -- ruby-usb
http://www.a-k-r.org/ruby-usb/

Java -- libusbjava
http://libusbjava.sourceforge.net/wp/

FreePascal -- fpc_libusb
http://www.sciencetronics.com/download/fpc_libusb.tgz

C# and DotNet: LibUsbDotNet
http://sourceforge.net/projects/libusbdotnet/

Lua -- lualibusb
http://luaforge.net/projects/lualibusb/