On Thu, Jul 21, 2011 at 4:27 AM, Hardy Griech <nt...@mardys.de> wrote: > > Many thanks to you, Xiaofan. I've downloaded libusb-win32 and installed > the filter. > > Now I'm getting the following output: > > hardy:~/src/mspdebug-0.16> mspdebug --usb-list > Devices on bus 000: > 000:000 15ba:0002 Olimex MSP-JTAG-TINY (v1) > hardy:~/src/mspdebug-0.16> ./mspdebug -j olimex > MSPDebug version 0.16 - debugging tool for MSP430 MCUs > Copyright (C) 2009-2011 Daniel Beer <dlb...@gmail.com> > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > olimex.c: Trying to open interface 0 on \\.\libusb0-0001--0x15ba-0x0002 > olimex.c: can't claim interface: No error > olimex.c: failed to open Olimex device > hardy:~/src/mspdebug-0.16> > > That means: the JTAG is now (at least) seen my mspdebug, but > functionality lacks somehow... > > Any hints? >
https://mail.google.com/mail/?hl=en&shva=1#inbox/1308bf1d77e7a58a For libusb-win32, especially for the filter more, you need to set configuration before claiming the interface. This is optional for Linux but no harm for Linux as well. 105 if (usb_claim_interface(tr->handle, tr->int_number) < 0) { 106 pr_error(__FILE__": can't claim interface"); 107 usb_close(tr->handle); 108 return -1; 109 } You can add a few lines before the above section. if (usb_set_configuration(tr->handle, 1) < 0) { pr_error(__FILE__": can't set configuration 1"); usb_close(tr->handle); return -1; } Rebuild mspdebug and the above error should go away. Documentation of libusb-win32 API: http://sourceforge.net/apps/trac/libusb-win32/wiki/libusbwin32_documentation -- Xiaofan ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users