lorf / csr-spi-ftdi

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

Having trouble programming a CSR8635 Wireless Stereo Bluetooth 4.0 Audio Receiver #36

Open brandon3055 opened 6 years ago

brandon3055 commented 6 years ago

Hello! hoping someone can help me with this.

I am attempting to program one of these boards https://www.ebay.com.au/itm/CSR8635-Wireless-Stereo-Bluetooth-4-0-Audio-Receiver-Board-USB-Amplifier-Module-/122023226338?hash=item1c6926abe2 the pinout of which can be found here https://cdn.discordapp.com/attachments/473739346961498134/492328381614915595/HTB11N6wHpXXXXb5XXXXq6xXFXXXI.jpg

I am currently using a cheap 232 FTDI adaptor and it seems no matter what i do i just get the common "Unable to start read (invalid control data)" error. I have double, triple, quadruple checked the spi connections. ground is connected to the ftdi ground and i have tried connecting vbat directly to 5V and through a diode to limit the voltage to ~4.4v I have also connected power_en directly to vbat. I have also tried this with a board that i have been using as an audio receiver. connected gnd and spi connections, powered it on and... nothing just "Unable to start read (invalid control data)"

I should mention i am on linux running BlueFlashCmd.exe under wine. I have also tried BlueFlash.exe it detects the FTDI adaptor but when i select it the application crashes.

Edit: i also have one of these but as far as i can tell blue flash does not even detect it https://www.ebay.com.au/itm/CSR-USB-SPI-ISP-Bluetooth-USB-SPI-Download-Module-Chip-Programmer-Debugger-New/322814866732?hash=item4b2943f52c:g:viYAAOSwwpdW8-V-

Edit2: after playing around with things a bit more i got the CRS SPI adaptor working in a vm but when i try to use it i get "Error detecting chip type (Read failed on USB-SPI). Select a SPI transport to attempt reconnect."

lorf commented 6 years ago

Can You please try different versions of csr-spi-ftdi, e.g. https://github.com/lorf/csr-spi-ftdi/releases/tag/0.5.2. It looks like folks getting troubles with the latest testing releases: #31

brandon3055 commented 6 years ago

I tried a few different versions but nothing really changed. Based on the pinout i posted how exactly should i wire this? I have: CS -> DTR CLK -> RTS MOIS -> MOIS MISO -> MISO GND -> GND

The chip is powered by a lithium cell connected to VBAT though i also tried with 5v and 4.4v attached to VBAT

Also tried pulling PCM to 1.8v and 5v via a 10k resistor, Finally also tried every combination of having the chip turned on/off and connecting the POWER_EN pin to logic HI (by default to power on the chip you connect POWER_EN to power for about 3 seconds to power on the chip)

666dsa666 commented 6 years ago

Having the same issue, I even bought a CSR programmer to no avail, same exact error.

Maybe 8635 is not compatible ?

tasker-k commented 5 years ago

CSR8635 uses the SPI interface to burn the set value. Please note that the PCM (SPI) of the Bluetooth module needs to be connected to the 1V8 HIGH potential before entering the SPI mode, otherwise it will not be able to burn.