On Wed, Jul 6, 2011 at 10:02 PM, Eric Wetzel <[email protected]> wrote: > I'm having a pile of bad times here getting J-Link to work with > OpenOCD under Windows 7 for use on the AM1808 EVM. I've learned a few > lessons; at least, I hope they're lessons, or I may have done many > things very wrong. > 1. In Windows 7, I had to set the LibUSB-Win32-0.1 installer to run in > Windows XP compatibility mode or it would completely disable my USB > ports: mouse, keyboard, all non-functional.
No no no! Please do not use the 0.1.x version of libusb-win32! Please use libusb-win32 1.2.4.0 release. It supports Windows 7 32bit and 64bit. Please remove the 0.1.12.x filter drivers before you install the 1.2.4.0 release. http://sourceforge.net/apps/trac/libusb-win32/wiki Then you can use the inf-wizard to replace the FTDI driver with libusb-win32. Or you can keep the FTDI driver but use the GUI Filter Wizard to install the device filter for the FTDI device. The device filter is safe to use, but not the class filter. If you use the GUI Filter Driver Wizard, you can attach the filter to the specific device which will not affect your other USB device. > 2. I have an aversion to depending on cygwin1.dll, but when Cygwin 1.7 > was released, the -mno-cygwin flag didn't work. mingw-gcc-core is a > gcc4 compiler that can make non-Cygwin executables. (Maybe this is old > news, but it's news to me) If you want to compile under Cygwin, you can use the latest MinGW cross compiler. > 3. I copied the installed LibUSB-Win32-0.1 usb.h and libusb.a to > include and lib, respectively, under /usr/i686-pc-mingw32/sys-root. > 4. The configure options I used were: --enable-maintainer-mode > --enable-dummy --enable-jlink --enable-ft2232_ftd2xx > --with-ftd2xx-win32-zipdir=$HOME/local/src/ftd2xx --prefix=$HOME/local > CC="i686-pc-mingw32-gcc" > note 4a: I'd rather be using libftdi, but I didn't want to fight with > it in Windows You can use libftdi. You can use Freddie's pre-built binary. Or if you prefer to build by yourself, I provide the libusbftdi-0.19 binaries for MinGW here. http://code.google.com/p/picusb/downloads/list > note 4b: I also wanted Bus Pirate support, but it requires termios.h > which the MinGW-targeted gcc didn't provide > > This built cleanly, and I got an openocd.exe that doesn't segfault > immediately and ldd says doesn't depend on cygwin1.dll. Those seem > like positive things. The trouble comes when I try to use it. I'm > using the target/omapl138.cfg because they're comparable chips (the > OMAP-L138 is an AM1808 with a sequencer and a DSP), and I need > something to get ICEpick to enable the debug ports. The same thing > happens with no target specified and J-Link disconnected from the > board. -- Xiaofan _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
