libftdi Archives

Subject: Re: libftdi1-1.0 release Windows DevKit for MinGW-w64 64bit

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 20 Feb 2013 22:37:55 +0800
On Sat, Feb 16, 2013 at 9:43 AM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> Download link:
> http://code.google.com/p/picusb/downloads/detail?name=libftdi1-1.0_devkit_mingw64.zip
>
> This is for developers who want to use libftdi1-1.0 release under 64bit
> Windows using MinGW-w64. It includes libusbx 1.0.14 Windows binary
> for MinGW-w64 64bit as well.
>
> It includes the following.
> 1) include file for libftdi1-1.0 and libusbx 1.0.14.
> 2) MinGW-w64 64 dll for libftdi1-1.0
> 3) MinGW-w64 import and static library for libftdi1-1.0
> 4) MinGW-w64 64 bit build of libftdi1-1.0 examples.
> 5) doxygen generated documentation
> 6) Windows device driver installation instruction.
> 7) libftdi1-1.0 source code and libusbx 1.0.14 source codes.
>
> Tools used to build this package.
> CMake 2.8.10.2: http://www.cmake.org/
> MinGW-w64 64bit GCC: http://www.mingw-w64.org
> (using Ruben personal build 4.7.2 release)
> doxygen: http://www.doxygen.org/
>
> Known problems:
> Not building the following compoenents:
> 1) Boost binding
> 2) The unit test program
> 3) 64bit Python binding
> 4) ftdi_eeprom program

Sorry this does not really work. I have deprecated the download.

I will need to check whether it is a problem with libftdi or libusbx.

The 32bit build works okay under 32bit Windows and 64bit
Windows.

1) With WinUSB driver, it failed.
C:\work\libftdi\libftdi1-1.0_devkit_mingw64\bin64>simple.exe
Initialized libftdi 1.0 (major: 1, minor: 0, micro: 0, snapshot ver: unknown)
unable to open ftdi device: -4 (libusb_open() failed)

Error debug log (set LIBUSB_DEBUG=4)
[ 0.046875] [00000ccc] libusbx: error [winusbx_open] could not open device \\.\U
SB#VID_0403&PID_6001#A8007UB5#{A5DCBF10-6530-11D2-901F-00C04FB951ED} (interface
0): [5] Access is denied.
[ 0.046875] [00000ccc] libusbx: debug [libusb_open] could not open device: LIBUS
B_ERROR_ACCESS

2) With libusb0.sys (libusb-win32) device driver, it failed.

C:\work\libftdi\libftdi1-1.0_devkit_mingw64\bin64>simple.exe
Initialized libftdi 1.0 (major: 1, minor: 0, micro: 0, snapshot ver: unknown)
unable to open ftdi device: -6 (ftdi_usb_reset failed)

Error debug log (set LIBUSB_DEBUG=4)
[ 0.054684] [00000d90] libusbx: debug [libusb_open] open 1.3
[ 0.054684] [00000d90] libusbx: debug [libusb_get_device_descriptor]
[ 0.054684] [00000d90] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.055660] [00000d90] libusbx: debug [libusb_detach_kernel_driver] interface 0
[ 0.055660] [00000d90] libusbx: debug [libusb_get_configuration]
[ 0.056637] [00000d90] libusbx: debug [libusb_get_configuration] active config 1

[ 0.056637] [00000d90] libusbx: debug [libusb_claim_interface] interface 0
[ 0.056637] [00000d90] libusbx: debug [winusbx_claim_interface]
claimed interface 0
[ 0.057613] [00000d90] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.057613] [00000d90] libusbx: debug [windows_assign_endpoints]
(re)assigned endpoint 81 to interface 0
[ 0.057613] [00000d90] libusbx: debug [windows_assign_endpoints]
(re)assigned endpoint 02 to interface 0
[ 0.058590] [00000d90] libusbx: debug [winusbx_submit_control_transfer] will use
 interface 0
[ 0.058590] [00000d90] libusbx: warning [winusbx_submit_control_transfer] Contro
lTransfer failed: [87] The parameter is incorrect.
[ 0.059566] [00000d90] libusbx: debug [libusb_close]
[ 0.059566] [00000d90] libusbx: debug [libusb_unref_device] destroy device 1.1
[ 0.059566] [00000d90] libusbx: debug [libusb_unref_device] destroy device 2.1
[ 0.059566] [00000d90] libusbx: debug [libusb_unref_device] destroy device 1.3
[ 0.060543] [00000d90] libusbx: debug [libusb_unref_device] destroy device 1.2
unable to open ftdi device: -6 (ftdi_usb_reset failed)
[ 0.061519] [00000d90] libusbx: debug [libusb_exit]
[ 0.061519] [00000d90] libusbx: debug [libusb_exit] destroying default context

C:\work\libftdi\libftdi1-1.0_devkit_mingw64\bin64>simple.exe
Initialized libftdi 1.0 (major: 1, minor: 0, micro: 0, snapshot ver: unknown)
ftdi_read_chipid: 0
FTDI chipid: 30B7EF1

3) With libusbk driver, it seems to work.
C:\work\libftdi\libftdi1-1.0_devkit_mingw64\bin64>simple.exe
Initialized libftdi 1.0 (major: 1, minor: 0, micro: 0, snapshot ver: unknown)
ftdi_read_chipid: 0
FTDI chipid: 30B7EF1

[ 0.052731] [00000dd0] libusbx: debug [libusb_open] open 1.4
[ 0.052731] [00000dd0] libusbx: debug [libusb_get_device_descriptor]
[ 0.053708] [00000dd0] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.053708] [00000dd0] libusbx: debug [libusb_detach_kernel_driver] interface 0
[ 0.053708] [00000dd0] libusbx: debug [libusb_get_configuration]
[ 0.053708] [00000dd0] libusbx: debug [libusb_get_configuration] active config 1

[ 0.054684] [00000dd0] libusbx: debug [libusb_claim_interface] interface 0
[ 0.054684] [00000dd0] libusbx: debug [winusbx_claim_interface]
claimed interface 0
[ 0.054684] [00000dd0] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.055661] [00000dd0] libusbx: debug [windows_assign_endpoints]
(re)assigned endpoint 81 to interface 0
[ 0.055661] [00000dd0] libusbx: debug [windows_assign_endpoints]
(re)assigned endpoint 02 to interface 0
[ 0.056637] [00000dd0] libusbx: debug [winusbx_submit_control_transfer] will use
 interface 0
[ 0.057614] [00000dd0] libusbx: debug [usbi_add_pollfd] add fd 4 events 1
[ 0.057614] [00000dd0] libusbx: debug [libusb_get_next_timeout] next timeout in
4.999162s
[ 0.058590] [00000dd0] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.058590] [00000dd0] libusbx: debug [handle_events] poll() 2 fds with timeout
in 5000ms
[ 0.059567] [00000dd0] libusbx: debug [handle_events] poll() returned 1
[ 0.059567] [00000dd0] libusbx: debug [windows_handle_events] checking fd 3 with
 revents = 0000
[ 0.060543] [00000dd0] libusbx: debug [windows_handle_events] checking fd 4 with
 revents = 0001
[ 0.060543] [00000dd0] libusbx: debug [usbi_remove_pollfd] remove fd 4
[ 0.060543] [00000dd0] libusbx: debug [windows_transfer_callback] handling I/O c
ompletion with errcode 0
[ 0.060543] [00000dd0] libusbx: debug [usbi_handle_transfer_completion] transfer
 000000000026DDA0 has callback 000000006B6056B0
[ 0.061520] [00000dd0] libusbx: debug [ctrl_transfer_cb] actual_length=0
[ 0.061520] [00000dd0] libusbx: debug [libusb_get_device_descriptor]
[ 0.061520] [00000dd0] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.062496] [00000dd0] libusbx: debug [winusbx_submit_control_transfer] will use
 interface 0
[ 0.062496] [00000dd0] libusbx: debug [usbi_add_pollfd] add fd 4 events 1
[ 0.063473] [00000dd0] libusbx: debug [libusb_get_next_timeout] next timeout in
4.999162s
[ 0.063473] [00000dd0] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.063473] [00000dd0] libusbx: debug [handle_events] poll() 2 fds with timeout
in 5000ms
[ 0.064449] [00000dd0] libusbx: debug [handle_events] poll() returned 1
[ 0.064449] [00000dd0] libusbx: debug [windows_handle_events] checking fd 3 with
 revents = 0000
[ 0.064449] [00000dd0] libusbx: debug [windows_handle_events] checking fd 4 with
 revents = 0001
[ 0.065426] [00000dd0] libusbx: debug [usbi_remove_pollfd] remove fd 4
[ 0.065426] [00000dd0] libusbx: debug [windows_transfer_callback] handling I/O c
ompletion with errcode 0
[ 0.065426] [00000dd0] libusbx: debug [usbi_handle_transfer_completion] transfer
 000000000026DDA0 has callback 000000006B6056B0
[ 0.066402] [00000dd0] libusbx: debug [ctrl_transfer_cb] actual_length=0
[ 0.066402] [00000dd0] libusbx: debug [libusb_unref_device] destroy device 1.1
[ 0.066402] [00000dd0] libusbx: debug [libusb_unref_device] destroy device 2.1
[ 0.066402] [00000dd0] libusbx: debug [libusb_unref_device] destroy device 1.2
[ 0.067379] [00000dd0] libusbx: debug [winusbx_submit_control_transfer] will use
 interface 0
[ 0.067379] [00000dd0] libusbx: debug [usbi_add_pollfd] add fd 4 events 1
[ 0.068355] [00000dd0] libusbx: debug [libusb_get_next_timeout] next timeout in
4.999162s
[ 0.068355] [00000dd0] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.068355] [00000dd0] libusbx: debug [handle_events] poll() 2 fds with timeout
in 5000ms
[ 0.069332] [00000dd0] libusbx: debug [handle_events] poll() returned 1
[ 0.069332] [00000dd0] libusbx: debug [windows_handle_events] checking fd 3 with
 revents = 0000
[ 0.069332] [00000dd0] libusbx: debug [windows_handle_events] checking fd 4 with
 revents = 0001
[ 0.070308] [00000dd0] libusbx: debug [usbi_remove_pollfd] remove fd 4
[ 0.070308] [00000dd0] libusbx: debug [windows_transfer_callback] handling I/O c
ompletion with errcode 0
[ 0.070308] [00000dd0] libusbx: debug [usbi_handle_transfer_completion] transfer
 00000000007BFDA0 has callback 000000006B6056B0
[ 0.070308] [00000dd0] libusbx: debug [ctrl_transfer_cb] actual_length=2
[ 0.071285] [00000dd0] libusbx: debug [winusbx_submit_control_transfer] will use
 interface 0
[ 0.071285] [00000dd0] libusbx: debug [usbi_add_pollfd] add fd 4 events 1
[ 0.071285] [00000dd0] libusbx: debug [libusb_get_next_timeout] next timeout in
4.999441s
[ 0.072261] [00000dd0] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.072261] [00000dd0] libusbx: debug [handle_events] poll() 2 fds with timeout
in 5000ms
[ 0.073238] [00000dd0] libusbx: debug [handle_events] poll() returned 1
[ 0.073238] [00000dd0] libusbx: debug [windows_handle_events] checking fd 3 with
 revents = 0000
[ 0.073238] [00000dd0] libusbx: debug [windows_handle_events] checking fd 4 with
 revents = 0001
[ 0.074214] [00000dd0] libusbx: debug [usbi_remove_pollfd] remove fd 4
[ 0.074214] [00000dd0] libusbx: debug [windows_transfer_callback] handling I/O c
ompletion with errcode 0
[ 0.075191] [00000dd0] libusbx: debug [usbi_handle_transfer_completion] transfer
 00000000007BFDA0 has callback 000000006B6056B0
[ 0.075191] [00000dd0] libusbx: debug [ctrl_transfer_cb] actual_length=2
ftdi_read_chipid: 0
FTDI chipid: 30B7EF1
[ 0.076167] [00000dd0] libusbx: debug [libusb_release_interface] interface 0
[ 0.076167] [00000dd0] libusbx: debug [libusb_close]
[ 0.077144] [00000dd0] libusbx: debug [libusb_unref_device] destroy device 1.4
[ 0.078120] [00000dd0] libusbx: debug [libusb_exit]
[ 0.078120] [00000dd0] libusbx: debug [libusb_exit] destroying default context


-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread