Author Topic: Programming off the shelf CSR8635 module  (Read 60938 times)

0 Members and 3 Guests are viewing this topic.

Offline sirtet

  • Newbie
  • Posts: 4
  • Country: ch
Re: Programming off the shelf CSR8635 module
« Reply #125 on: January 22, 2018, 11:37:50 am »
OK, my module announces itself as Beomaster 1900 now...
(as i will place it inside a Vintage Bang&Olufson Receiver   :))
 I did it with PStools and the DIY LPT programmer, hooked up according to my pinout-image above.
After a first fail, i had to modify the programmer a bit, as i found out the LPT on my Laptop Outputs only 3.3v  ^-^
So I used 6k8 and 5k6 resistors in the voltage dividers and 3.3v as vcc.
For MISO i made a level shifter with 2 transistors, as seen here:
https://forum.arduino.cc/index.php?topic=160716.msg1210677#msg1210677
Pin 29 I pulled directly to a 1.8V supply.

Thanks to all who provided all the different bits here and there...
 

Offline Chilmars

  • Contributor
  • Posts: 10
  • Country: gw
Re: Programming off the shelf CSR8635 module
« Reply #126 on: March 08, 2018, 02:51:37 am »
Hello
Can somewone send give download link CSR64210 eeprom or dump file?
I bricked my..meed to get back
 

Offline konsgn

  • Newbie
  • Posts: 4
  • Country: us
Re: Programming off the shelf CSR8635 module
« Reply #127 on: April 13, 2018, 11:52:34 pm »
Hey All,

I had a stellaris board kicking around for a long time programmed to
GitHub - Frans-Willem/CsrUsbSpiDeviceRE: Reverse engineered reimplementation of the CSR USB<>SPI converter device on a Stellaris Launchpad. Will work with the original CSR driver and should allow all CSR BlueSuite tools to work on BlueCore chips, with the notable exception of the ones requiring JTAG.

Of course it broke and I was out of a programmer and had a new csr8645 module to play with/ need of reprogramming my hacked HD201 headphones.

Not willing to pay the 15$ for a programmer, and looking to get more comfortable with the family of processors, I ported the code to the bluepill/black magic probe. If anyone wants their own csr programmer, they can purchase a "blue pill" and program it with any uart programmer to the CSR-SPI functionality.

The code also works if you have a black magic probe already, as it bitbangs the same pins that the probe does.

Here's a link:
BlueMagic

Also note, after playing with it for a bit, I realized I broke the csr8630 chip by yelling at it in 3.3v... don't do that. The Blue Pill can only talk in 3.3V but I updated the code so that when programmed to a black magic probe it checks target power voltage on power up. If the code sees a voltage greater than 1V it leaves it's 3.3v power supply off. If you connect the black magic's vcc to spi_en and a 1.8V target point, you will be powering the translator chip at that voltage and it should talk properly(at 1.8V).
 

Offline Magnets

  • Contributor
  • Posts: 12
  • Country: gb
Re: Programming off the shelf CSR8635 module
« Reply #128 on: April 15, 2018, 09:38:18 am »
Also note, after playing with it for a bit, I realized I broke the csr8630 chip by yelling at it in 3.3v... don't do that. The Blue Pill can only talk in 3.3V but I updated the code so that when programmed to a black magic probe it checks target power voltage on power up. If the code sees a voltage greater than 1V it leaves it's 3.3v power supply off. If you connect the black magic's vcc to spi_en and a 1.8V target point, you will be powering the translator chip at that voltage and it should talk properly(at 1.8V).

Sorry if I'm being dense, but does this mean you can program CSR chips using just a $2 board or do I need something else (black magic probe?) to make it work with 1.8v?
 

Offline konsgn

  • Newbie
  • Posts: 4
  • Country: us
Re: Programming off the shelf CSR8635 module
« Reply #129 on: April 15, 2018, 01:50:17 pm »
For the CSR chips that work at 3.3V(e.g. BC417, the one in HC-05), the Blue Pill dev board will be all you need.

For talking to 1.8V devices you will want a voltage translator to bring down the 3.3V to 1.8V. (Resistors to make sure not too much current flows may be enough, No promises though).

If you have an official black magic probe(which has a built in translator), you can just reprogram it to act as an official CSR programmer.
 

Offline mehdikh15

  • Newbie
  • Posts: 3
  • Country: jp
Re: Programming off the shelf CSR8635 module
« Reply #130 on: May 13, 2018, 07:06:36 pm »
hello dears

i read shtokYd question about creating an audio transmitter with csr productions. i relized too that he mentioned usable chips are csr8670 and 8645 because of their available app-tx feature. i want to ask that  could anyone acheive any success in that ? could u create an audio transmitter  ?

actually i have two csr8645 modules, and i want  to create a complete audio tranceiver . first of all i should ask , how can i make two these modules paired with each other (in fact one receiver one transmitter) ? then how can i  active aptx feature in this chip ? i should mention that i could  setup bluesuits and csr configuration tools with one spi programmer setup.


i will appreciate your response .
best regards
 

Offline Buriedcode

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: gb
Re: Programming off the shelf CSR8635 module
« Reply #131 on: May 13, 2018, 09:26:56 pm »
As far as I am aware, only the CSR8670/8675 are capable of being a host/transmitter.  Often these are ROM based with external EEPROM for config settings - so they are pretty much "hard coded" as receivers or transmitters, you cannot "reprogram" a receiver to be a transmitter.
An alternative would be to purchase a cheap bluetooth audio transmitter - often these have a tx/rx switch, support apt-x, and are modular - small sub modules on a PCB with a few external passives.

It is actually quite a cheap way of getting the modules, since Ebay and Amazon have plenty of csr8670-based transmitters.

I have a a couple of these as clones: https://www.amazon.co.uk/Bluetooth-Transmitter-Receiver-TaoTronics-Wireless-Black/dp/B06WD8Z21S  which cost about $12. 
« Last Edit: May 14, 2018, 08:45:36 am by Buriedcode »
 
The following users thanked this post: mehdikh15

Offline mehdikh15

  • Newbie
  • Posts: 3
  • Country: jp
Re: Programming off the shelf CSR8635 module
« Reply #132 on: May 14, 2018, 05:00:25 pm »
thanks for your attention :-+ . so you are saying we don't have any access to modify their ROMs ? do you know about the software that shtokYd was telling about that I guess was called ADK.. ? (he was trying to download it from Chinese website 52bluetooth.com)
 

Offline Buriedcode

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: gb
Re: Programming off the shelf CSR8635 module
« Reply #133 on: May 15, 2018, 03:11:37 am »
thanks for your attention :-+ . so you are saying we don't have any access to modify their ROMs ? do you know about the software that shtokYd was telling about that I guess was called ADK.. ? (he was trying to download it from Chinese website 52bluetooth.com)

Well, by definition you cannot modify a ROM - its an acronym for "read only memory".  It is either OTP - one time programmable, or actually hard coded.

Most bluetooth modules based on CSR/Qualcomm devices are either ROM-based, with external EEPROM, or.. they load in firmware from external flash.  The latter would require the SDK for CSR/Qualcomm and some example firmware.  Long story short is, it would be much cheaper and easier for you to purchase a ready-made product, and modify it or reverse engineer it to suit your needs.  A quick search for "bluetooth audio tx/rx" yields lots of results.
 
The following users thanked this post: mehdikh15

Offline mehdikh15

  • Newbie
  • Posts: 3
  • Country: jp
Re: Programming off the shelf CSR8635 module
« Reply #134 on: May 15, 2018, 07:57:47 pm »
 My persistence to modify default settings is that I have some specific configurations like sample rate of adc or stereo/ mono etc. by the way I cannot thank you enough for your suggestions and informations   :-+
 

Offline Buriedcode

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: gb
Re: Programming off the shelf CSR8635 module
« Reply #135 on: May 16, 2018, 05:10:28 am »
My persistence to modify default settings is that I have some specific configurations like sample rate of adc or stereo/ mono etc. by the way I cannot thank you enough for your suggestions and informations   :-+

Changing the sample rate and channels should be possible with almost any csr bluetooth module, as those appear to be parameters stored in the external EEPROM.  You would need a suitable hardware dongle (either ft232R based, or a chinese clone of a "CSR SPI" device - I have that and it works well).  Also, you can use PSTools to change some parameters, or the "headset configuration utility".  There are different versions for CSR86XX devices (csr8635/45/70/75) and CSRA64xxx (csra64215).

As you have probabyl read in the thread, it is quite easy to "brick" these modules as the software doesn't always write back all the config data.  But you can use PSTools to back up the config before you do anything.
 
The following users thanked this post: mehdikh15


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf