Csr Bluesuite Download
Table of Contents
CSR BlueSuite Version What is CSR BlueSuite Version? Every day, users submit information to File.org about which programs they use to open specific types of files. Bluelab costs 3000$, but for hobby use I guess you can use a copy downloaded from the internet. This contains the CSR stack, examples, XAP.
Csr Bluesuite 2.5 8 Download
- CSR BlueCore USB SPI programmer/debugger
- CSR chips supported by programmer
- Programmer hardware
- Software
- Installing prebuilt drivers
- Using the driver
- Building for Wine
- Building DLL for Windows
This is USB SPI programmer and debugger for CSR BlueCore bluetooth chips, basedon FTDI FT232R USB to UART converter chip. Programmer hardware can be madeusing simple FT232RL breakout board, or built as a dedicated programmer usingincluded schematic. Programmer driver works by replacing USB SPI programmerdriver, usbspi.dll, in CSR applications and is currently ported to Linux/Wineand Windows.
Project home page: https://github.com/lorf/csr-spi-ftdi.
CSR chips supported by programmer
Generally, all CSR BlueCore chips starting with BlueCore 2 should be supported.Programmer was tested with the following chips:
- BC417143 (on HC-05 module)
- BC57F687A
- CSR8645
- BC212015 (reported by Alex Nuc, see Chip notes)
Chip notes
- BlueCore chips require either 3.3V or 1.8V I/O voltage level. Check thedatasheet.
- Some chips (like CSR8645) share SPI pins with PCM function. For such chips tobe accessible via SPI,
SPI_PCM#
pin should be pulled up to I/O voltagesupply through a 10K resistor. - On some chips
SPI_DEBUG_EN
(on BC6140) orSPI_PIO#
(on CSR1010) pinshould be pulled up directly to I/O voltage supply to enable SPI port. - BlueCore chips which integrate battery charger has charger configurationenabled by default. Such chip may shutdown shortly after power on if Youdon't connect charged battery. Battery charger configuration is defined in
PSKEY_USR0
and can be changed using appropriate Configuration Tool orPSTool. See sample PSR files for disabling charger in misc/. - BlueCore 2 chips (such as BC212015) are not supported in BlueSuite 2.4 andabove. It's also reported that to flash/dump these chips it's required tolower SPI speed. So for BC2 chips it's recommended to use BlueSuite 2.3 andset
SPIMAXCLOCK=200
option.
Programmer hardware
Programmer hardware is based on FT232R chip. It is possible that latergeneration FTDI chips, such as FT2232C/D/H or FT232H, will also work, but thiswas not tested.
Using FT232RL breakout board as a programmer
You can build a simple programmer using popular FT232RL breakout boards (searchEbay for 'FT232RL adapter' for example). Pinout specified in spi.c file.Change it at will. Note that FTDI boards usually provide 5V or 3.3V I/O levelswhile CSR chips require 3.3V or 1.8V I/O level. You may supply appropriateVCCIO to FTDI chip or use logic level converter if levels don't match. Seedescription of VCCIO pin in FTDI chip datasheet for details.
This is a default pinout:
Signal | FT232RL pin | FTDI pin name | FTDI GPIO bit | CSR pin |
---|---|---|---|---|
CS# | 2 | DTR# | D4 | SPI_CS# |
CLK | 3 | RTS# | D2 | SPI_CLK |
MOSI | 6 | RI# | D7 | SPI_MOSI |
MISO | 9 | DSR# | D5 | SPI_MISO |
TX | 1 | TXD | Not used | UART_RX |
RX | 5 | RXD | Not used | UART_TX |
LED_RD | 10 | DCD# | D6 | -- |
LED_WR | 11 | CTS# | D3 | -- |
GND | 7, 18, 21 | GND | -- | GND |
SPI and UART BlueCore pins could be connected directly to FTDI pins, but I'drecommend to wire them through the 220 Ohm (or so) resistors.
TX and RX connections are optional and provide connectivity to BlueCore UART.
LED connections are optional. Wire LED cathodes through the current limitingresistors (330 Ohm works fine) to the appropriate FTDIpins. Wire LED anodes to FTDI 3V3 pin.
Other pinouts can be specified with FTDI_PINOUT
Option.
Don't power BlueCore chip from FT232R internal 3.3V regulator! It's currentdraw may exceed FT232R 50mA limit, which may cause communication errors.
Also see notes on Counterfeit FT232RL chips.
Dedicated programmer
Csr Bluesuite 2.5 Download
KiCad schematic for a dedicated programmer can be found inhardware/ subdirectory.
Counterfeit FT232RL chips
Cheap (< $5) FT232RL modules usually contain counterfeit FT232RL chips(1,2,3). I'vegot such chip (this one has read-only EEPROM, S/N A50285BI, probably it's ageneration 2 counterfeit) andverified csr-spi-ftdi to work with it.
There is a known data loss issue with counterfeit FT232RL chip and ASM1042 USB3.0 controller. If You encounter it (You'll get an error on stderr, seeTroubleshooting), try to replug the programmer to othercontroller. Note that genuine FT232RL works fine with this controller.
Counterfeit IC also may produce some communication errors, but they areautomatically retried, so in general it works well enough.
Some versions of Windows FTDI driver tend to intentionallybrick1st generation counterfeit chips by setting their PID to 0x0000. Thereareunbrick(2) andprotectprocedures, but csr-spi-ftdi will work on the bricked chips too.
Software
CSR software
This driver is tested with CSR BlueSuite 2.1 - 2.6.0 and with CSR BlueLab 4.1,but should work with other CSR software, such as SDK, ADK, Configuration Tool,Parameter Manager. Newer versions of BlueSuite can be found athttps://www.csrsupport.com/PCSW
. Older versions of BlueSuite can be found athttps://www.csrsupport.com/PCSWArchive
. Access to these pages requiresregistration.
Installing prebuilt drivers
Prebuilt drivers for Linux and Windows can be downloaded fromhttps://github.com/lorf/csr-spi-ftdi/releases/latest.
Installing on Ubuntu/Debian Linux
Install Wine:
Install CSR BlueSuite in Wine. Find all instances of usbspi.dll installed andmove them out of the way:
Copy usbspi.dll.so to Wine system directory:
Alternately You can specify location of the .dll.so file in WINEDLLPATHenvironment variable, see wine(1) man page for details.
Allow yourself access to FTDI device
After that You'll need to add yourself to plugdev
group and relogin.
Installing on Windows
- Install CSR package such as BlueSuite;
- Make a backup of usbspi.dll in your application directory (e.g. in
C:Program Files (x86)CSRBlueSuite 2.6.0
); - Copy lib-win32/usbspi.dll to your application directory;
- Connect Your FTDI device to computer;
- Download and run Zadig from http://zadig.akeo.ie/. In Options menu choose'List all devices', choose Your FTDI device ('FT232R USB UART' or similar),choose libusbK driver, press 'Replace driver' or 'Install driver'. Thiswill install generic libusb-compatible driver for your FTDI chip. There is atutorial on running libftdi programs on Windows here:http://embedded-funk.net/running-libftdi-under-windows/;
- Run your CSR apps.
Using the driver
Choosing USB transport
Older BlueSuite defaults to use CSR SPI LPT programmer, to use csr-spi-ftdi Youneed to select USB SPI transport. Use -TRANS 'SPITRANS=USB SPIPORT=1'
optionfor command line tools. Importmisc/spi-set-usb-transport.reg to change thedefault.
Options
Csr-spi-ftdi driver supports several options that can be set as environmentvariables or using the -TRANS option to most CSR commandline apps.
SPIMAXCLOCK
- Maximum SPI clock frequency in kHz, default is 1000.Practical values range from 20 to 2000. CSR app may slow SPI clock down whenread or write verification fails. Some commands are always executed at 20kHz.FTDI_LOG_LEVEL
- sets csr-spi-ftdi log level, available log levels:quiet
,err
,warn
,info
,debug
. Adding a,dump
option provides hexdumps of transferred data. Example:FTDI_LOG_LEVEL=info,dump
. Default:warn
.FTDI_LOG_FILE
- specify log file name. Can be set tostdout
to log tostandard output, or tostderr
to log to standard error stream. Default:stderr
.FTDI_INTERFACE
(since version 0.5.1) - specify interface on multi-interfacechips (FT2232, FT4232). Default:A
.FTDI_PINOUT
(since version 0.5.2) - specify a pinout. Available pinouts:default
- default pinout as described in Using FT232RL breakout board asa programmer.noleds
- this is the same asdefault
but without LEDs.hwspi
- pinout for use with MPSSE chips (FT2232, FT4232, FT232H), usesthe same pins as hardware SPI. Note that hardware SPI capability is notused, just the same pinout is used for convenience. This pinout can be usedwith adapters like TIAOTUMPA.The pinout is as follows:CS
-DBUS3
,CLK
-DBUS0
,MOSI
-DBUS1
,MISO
-DBUS2
.hwspi+leds
- this is the same ashwspi
but adds read and write LEDs onDBUS4
andDBUS5
pins respectively.
For other options see misc/transport-options.md.
Communication speed
Reading or writing a 1 MB flash on HC-05 module takes about 60 seconds. DumpingHC-05 PS keys takes about 40 seconds.
Running csr-spi-ftdi in a virtual machine slows things down presumably due tolatency added by USB virtualization. E.g. running csr-spi-ftdi under VirtualBoxslows transactions down about 4x times.
Useful commands
These commands should be executed from directory where BlueSuite is installedor this directory should be in your PATH.
Display chip ID, this is also a quick communication test:
Display chip ID, firmware version and flash size:
Save firmware backup (only for chips with flash, backup will include PSkeys):
This creates two files,
csr-fw-backup.xpv
andcsr-fw-backup.xdv
.Flash firmware from files
csr-fw.xpv
andcsr-fw.xdv
:Collect debug logs:
Lower SPI speed 5 times:
Save chip settings (PS Keys) backup into
csr-pskeys.psr
:Merge some settings from
pskeys.psr
to the chip:Backup whole EEPROM image to a file:
Restore EEPROM contents from backup file:
Troubleshooting
- Decreasing SPI speed using
SPIMAXCLOCK
option may help in caseof communication failures. Unable to start read (invalid control data)
errors are usually harmless,since read attempts are retried. If You've got a pile of theese errors andprogrammer doesn't work - check connections, voltage levels, try to lower SPIconnection resistor values or connecting ~ 1nF capacitors in parallel withresistors. Decreasing SPI speed usingSPIMAXCLOCK
option mayalso help.WARNING: Attempt %d to read sector %d
warnings are also harmless if they arenot result in error.Couldn't find LPT port
error means You use spilpt.dll driver instead ofusbspi.dll. Try importingmisc/spi-set-usb-transport.reg or adding-trans 'SPITRANS=USB SPIPORT=1'
option on command line.Lost %d of %d bytes of data in transit
orERROR: Download Failed, Sector %d
- probably an indication of counterfeit FT232RL plugged into ASM1042 USB3.0 controller. Try to replug into other controller. See Counterfeit FT232RLchips.
Building for Wine
Building Wine DLL on 32-bit Debian/Ubuntu Linux
Install build tools:
Install development libraries:
Build with command:
Building Wine DLL on 64-bit Debian/Ubuntu Linux
Install build tools:
Install 32 bit stuff:
Build with command:
Installing
Install CSR BlueSuite in Wine. Find all instances of usbspi.dll installed andmove them out of the way:
Install Wine dll into the Wine libraries directory:
Alternately You can specify location of the .dll.so file in WINEDLLPATHenvironment variable, see wine(1) man page for details.
Building DLL for Windows
Cross-compiling DLL for Windows on Debian/Ubuntu using MinGW
Install MinGW cross-development environment:
Download precompiled libusb forwindows and extract it to thelibusb directory:
Build libftdi from source:
Build with command:
Bugs
- See Issues on github to listcurrent bug reports or to report a bug.
- Current implementation of 1.4 SPI API (used in BlueSuite starting from 2.4)is based on a wild guess and is just a wrapper around 1.3 functions. Itdoesn't support multiple programmers connected at the same time and maycontain other bugs.
Thanks
- This project is a derivative of Frans-Willem Hardijzer's reverse-engineeredspilpt.dll drivers;
- Thanks to unicorn from http://www.nebo-forum.kiev.ua/ for the idea of aDLL for Wine.
- Thanks to all the Contributors!
Related projects
- LPT programmer and general info by RobinGross;
- Reverse-engineered SPILPT driver + Arduino SPILPTdriver by Frans-WillemHardijzer, for Windows;
- USBSPI programmer based on CSR BC3 chipusing original firmware by Jernej Škrabec;
- USBSPI programmer software for Linux(git mirror) by Jernej Škrabec;
- USBSPI protocolanalysis;
- Using USBSPI onLinux;
- Remote debugging protocolimplementaton (gitmirror)
- USBSPI programmer based on StellarisLaunchpad by Frans-WillemHardijzer, for Windows;
- See a list of related projects in the wiki.
Other sources of information
BlueSuite 2.5.0 'source code'It seems CSR removed it fromdownload.https://www.csrsupport.com/document.php?did=38692
- it doesn't containsource code for SPI drivers but at least development header files inCSRSource/result/include/ are of some help.
New Software
Super Moto Racers 1.99
Published: 19 May, 2019 10:11
3D motorcycle racing game. It's time to become the best..
Rons CSV Editor 2019.04.10.1446
Published: 19 May, 2019 09:57
Rons CSV Editor is the ultimate CSV editor designed to..
WinToUSB 4.8
Published: 16 May, 2019 11:32
WinToUSB allows you to install/clone Windows 10/8.1/8/7..
ProVide 12.16
Published: 16 May, 2019 11:30
ProVide is a user-friendly solution to safely and..
Dwyco VideoChat Community 2.19
Published: 16 May, 2019 11:26
Use your webcam and mic to video instant message or chat..
Folder Permissions Report for Outlook 4.12
Published: 16 May, 2019 11:24
This free report shows user permissions for..
SSuite Writers D-Lite 2.8.4.4
Published: 16 May, 2019 11:17
This writers tool has just enough functionality to start..
SALVAGEDATA Total Recovery PRO 1.0
Published: 16 May, 2019 10:46
With SALVAGEDATA's free data recovery software for..
Freight Train Simulator 2.10
Published: 16 May, 2019 10:39
3D train simulation game. Take control of several freight..
Apocalypse Motor Racers 1.89
Published: 16 May, 2019 10:25
3D combat racing game. After World War III abandoned..
New Reviews
Aquarium Lab 2012.0.2(Usha)
My aquarium water condition is being monitored by this..
TextSeek (Mac) 2.5.1583(Zesi_Tom)
Deep indexing of desktop computer's documents is..
RPM Remote Print Manager Elite 32 Bit 6.1.0.439(tintin)
Takes care of any printing job to be converted and saved..
Mungaru male 1 songs mp3 free download. Nutrigenic Helper 1.0(Simsiak)
As a dietician I use this software to plan a nutrient..
Radmin 3.5.2.1(Jefferson)
Can control the computers from distance location even if..
JavaScript Diagram 3.2.0(Xeviers)
Lots of flow diagrams can be drawn in short time with..
WarpPro 1.0(Rownok)
Reproduces any record after fixing the timing error of..
HueScope Separator 1.0(Kislu)
Separates the colors from an watercolor image which is..
ERD Concepts 8.0(Tintin)
For backend database design it is the perfect one, manual..
MindView 7.0.15506.0(Zerin)
Can easily note down any new ideas or plans for future..
Popular Software
FreeCommander 2009.02b(6205)
Released: 08 November, 2011
FreeCommander is an advanced file manager program. It can..
AbiWord 2.8.6(1809)
Released: 05 December, 2011
AbiWord is a free word processor for all major operating..
TestDisk and PhotoRec 6.14(2835)
Released: 24 October, 2012
TestDisk is a powerful free data recovery software!
NetBeans IDE 7.4(1056)
Released: 02 December, 2013
Free and open source IDE for programmers in almost all..
Safari for Windows 5.1.7(3981)
Released: 04 December, 2013
Experience the fastest web browsing in your windows PC..
GeekUninstaller 1.1.1.21(1381)
Released: 08 December, 2013
GeekUninstaller is a free small sized uninstaller program..
SeaMonkey 2.23(1589)
Released: 07 January, 2014
Advanced Internet user, web developer and corporate..
Ahnenblatt 2.74(86)
Released: 15 November, 2012
Ahnenblatt is a free and easy-to-use genealogy software..
Related Software
Recent Software
Freeware: Csr Bluesuite 2
Full Auto 2: Battlelines Screensaver (PS3) 1.1License: Freeware A screensaver that showcases Full Auto 2: Battlelines for the Playstation 3. 34 images are included, all unique & watermark free. The smallest screenshot in this pack is 720+S480, (only 2) and the largest is 1280+S720. Author:Game-Savers.com Date: 15 October, 2005 OS Support: Windows 2000 , Windows 98 , Windows Millennium , Windows XP | Homepage Download |
---|---|
Free MOV 2 AVI 1.0License: Freeware Free MOV 2 AVI is a freeware software program that converts Quicktime (MOV) to AVI. You can convert as multiple files at once (batch processing) if youd like. Author:Keith Gilbert Date: 22 October, 2007 OS Support: Tablet PC Edition 2005 , Windows 2000 , Windows 2003 , Windows 98 , Windows Millennium , Windows NT 4.x , Windows XP | Homepage Seagate crystal reports 7 serial key. Download |
DeleteOnClick 2.2.32.100License: Freeware DeleteOnClick 2.2.32. Author:2BrightSparks Date: 05 December, 2011 OS Support: Windows , Windows 7 , Windows 2000 , Windows Vista | Homepage Download |
HashOnClick 2.2.32.21License: Freeware HashOnClick 2.2.32. Author:2BrightSparks Date: 05 December, 2011 OS Support: Windows , Windows 7 , Windows 2000 , Windows Vista | Homepage Download |
IMG Loader (Fade) 2.0License: Freeware IMG Loader (Fade) 2.0 provides you a convenient tool which can display external image files (JPEG/GIF/PNG but not progressive JPEG files) with a simple Fade transition. Major Features: Adobe V2 Component Architecture. Author:Advanced Flash Components Date: 05 December, 2011 OS Support: Linux / Mac OS / BSD / Solaris | Homepage Download |
Avi 2 iPOD (mp4) 1.3License: Freeware Avi 2 iPOD (mp4) project can batch or single convert your .Avi files to .mp4 so you can watch them on your video iPOD. The video codec is xvid and audio is aac. Author:454casull Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Imlib2 1.2.0License: Freeware Imlib 2 is the successor to Imlib. It is NOT a newer version -- it is a completely new library. Imlib 2 can be installed alongside Imlib 1.x without any problems since they are effectively different libraries which have very similar functionality. Author:Carsten Haitzler Date: 22 October, 2010 OS Support: Linux | Homepage Download |
iproute2 2.6.15 060110License: Freeware iproute2 is `iproute, the professional set of tools to control the networking behavior in kernels 2.2.x and later. ip link - network device configuration A link refers a network device. Author:Alexey Kuznetsov Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Ganymed SSH-2 for Java Build 210License: Freeware Ganymed SSH2 for Java is a library which implements the SSH-2 protocol in pure Java (tested on J2SE 1.4.2 and 5.0). Ganymed SSH2 for Java allows one to connect to SSH servers from within Java programs. Author:Christian Plattner Date: 22 October, 2010 OS Support: Linux | Homepage Download |
hReview WordPress Plugin 0.2License: Freeware hReview WordPress Plugin is a plugin that allows for the easy entry of hReview microformat content for reviews in WordPress 2.0.x pages and posts. Author:Andrew E Scott Date: 22 October, 2010 OS Support: Linux | Homepage Download |
mod_log_dbd 0.2License: Freeware mod_log_dbd package is a module for Apache 2.2+ that writes access logs to a database using the APR DBD framework. Its designed for simplicity and speed, and therefore lacks some of the features of other logging modules. Author:Brandon Fosdick Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Gnome Multimedia Keys 0.2License: Freeware Gnome Multimedia Keys is an Amarok script that will allow the use of keyboard multimedia keys in Gnome 2.18 and above (eg. ubuntu feisty) to control playback. This includes most multimedia buttons found on many laptops. Author:Chris Brown Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Chatbot::Alpha::Tutorial 2.04License: Freeware Chatbot::Alpha::Tutorial is a beginners guide to Chatbot::Alpha 2.x. INTRODUCTION What is Chatbot::Alpha? Chatbot::Alpha is a Perl module for reading and processing Alpha code. Author:Cerone J. Kirsle Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Java Unified Expression Language 2.1.0License: Freeware Java Unified Expression Language is an implementation of the unified expression language (EL) as specified by the JSP 2.1 standard (JSR-245). The javax.el.ExpressionFactory implementation is de.odysseus.el. Author:Christoph Beck Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Windowgrouper 0.2License: Freeware Windowgrouper is a GNOME 2 panel applet that allows you to group windows together so that when one window in a group is minimized, unminimized, or moved to another desktop, the same operation is applied to the other windows in that group. Author:Christopher Carroll Date: 22 October, 2010 OS Support: Linux | Homepage Download |
GTKO 2.14License: Freeware GTKO is a GTK+ 2 Oracle development tool. Its features include a schema browser, multiple SQL work areas, SQL syntax highlighting, bind variable entry widgets in the command window, tracing facility, and SQL*Plus-style command scripting. Author:Colby Farrell Date: 22 October, 2010 OS Support: Linux | Homepage Download |
EndoShield 1.2License: Freeware Endoshield is a fully configurable easy to use firewall, which will run under the 2.2 Linux kernel (ipchains), or the 2.4 Linux Kernel (iptables). Author:Dave Cheeseman Date: 22 October, 2010 OS Support: Linux | Homepage Download |
Tourney Team Stats for Quake 2 0.4.4License: Freeware Tourney Team Stats (tts) is a Python script that creates stats for Quake 2 Team Play. It can only work with the ngLog logstyle, so the Tourney Quake 2 mod is the only one supported. Get Tourney Team Stats (TTS) for Quake 2 at SourceForge.net. Author:Dick Knol Date: 22 October, 2010 OS Support: Linux | Homepage Download |
AeroMail 2.52License: Freeware AeroMail 2 is the next generation of Mark Cushmans AeroMail. AeroMail is a web-based e-mail client written in PHP. AeroMail uses an IMAP server to read and store messages in one or more user-defined folders. Author:Dion Nicolaas Date: 22 October, 2010 OS Support: Linux | Homepage Download |
omniORBpy 2.7License: Freeware omniORBpy is a high-performance CORBA 2.6 ORB for Python. omniORB is largely CORBA 2.6 compliant. omniORB is one of only three ORBs to have been awarded the Open Groups Open Brand for CORBA. Author:Duncan Grisby Date: 22 October, 2010 OS Support: Linux | Homepage Download |
P-UMLaut 1.2License: Freeware The P-UMLaut tool allows the user to transform UML 2.0 Sequence Diagrams to semantically equivalent Petri Nets. Author:Eike Frost Date: 22 October, 2010 OS Support: Linux | Homepage Download |
hldStart 2-62007License: Freeware hldStart (HLDS Control Panel) is a PHP based web app to start and stop a Half-life1 and 2 dedicated server (hlds) and any of its mod games (CS, DOD) using a web browser. There is also a steam web client for updating your games. Author:Gregory Fowler Date: 25 October, 2010 OS Support: Linux | Homepage Download |
GNUstep Database Library 2 0.10.1License: Freeware GNUstep Database Library 2 (GDL2) is a set of libraries to map Objective-C objects to rows of relational database management systems (RDBMS). Author:GDL2 Authors Date: 25 October, 2010 OS Support: Linux | Homepage Download |
ORBIT2 2.14.8License: Freeware ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB) featuring mature C, C++ and Python bindings. Bindings (in various degrees of completeness) are also available for Perl, Lisp, Pascal, Ruby, and TCL; others are in-progress. Author:GNOME Foundation Date: 25 October, 2010 OS Support: Linux | Homepage Download |
gnome-panel 2.18.3 / 2.19.6License: Freeware gnome-panel package is free software and is part of the GNOME 2.0 project. The package contains the GNOME panel which is the area on your desktop from which you can run applications and applets, and perform other tasks. Author:gnome-panel Team Date: 25 October, 2010 OS Support: Linux | Homepage Download |