lorf / csr-spi-ftdi

USB SPI programmer/debugger for CSR BlueCore bluetooth chips, based on FTDI USB to UART converter, for Linux and Windows
560 stars 101 forks source link

No FTDI device found / FT232R USB #32

Open koshisan opened 6 years ago

koshisan commented 6 years ago

I am a bit hesitant to submit this is a bug, because it might be personal incompetence - but I cannot get the CSR Tools (BlueSuite 2.6.6, tried older 2.5 before) to work.

CMD Output is:

22:20:15.530489: all:spi.c:567:spi_init: csr-spi-ftdi 0.5.3-a5, git rev 1f342f2, libftdi 1.4-unknown 22:20:15.920445: err:spi.c:709:spi_open: No FTDI device found

ERROR: Couldn't find SPI port

Failed

-> since it says "csr-spi-ftdi 0.5.3" the library seems to be correctly installed

I am using an FTDI232, zadig replaced the driver without any problem - It is listed in device manager as "FT232R USB UART" under "libusbK USB Devices" - so to my understanding it should at least be discovered?

Thanks for helping!

koshisan commented 6 years ago

Took a look at the sourcecode meanwhile - 0x0403, 0x6001 is the first vendor id listed in ftdi_device_ids - Windows Device Manager reports exactly this IDs for my device -> It should be supported

koshisan commented 6 years ago

BlueFlashCmd.exe -trans "SPIDEBUG=ON \ SPIDEBUG_FILE=csr-spi-debug.log FTDI_LOG_LEVEL=debug,dump \ FTDI_LOG_FILE=ftdi-debug.log" -identify

Does neither write a file, nor give any more output at all - this is seriously broken!

koshisan commented 6 years ago

I found a solution to the problem - It seems the USB driver cannot handle devices connected to a hub...

Maybe the documentation should be updated accordingly?