Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brandon3055 opened this issue Sep 20, 2018 · 4 comments

Comments

@brandon3055
Copy link

brandon3055 commented Sep 20, 2018

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
Copy link
Owner

lorf commented Sep 21, 2018

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
Copy link
Author

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
Copy link

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

Maybe 8635 is not compatible ?

@tasker-k
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants