Page 10 of 58
© Cambridge Silicon Radio Limited 2012-2013 CS-224993-UGP4
Confidential Information - This material is subject to CSR’s non-disclosure agreement www.csr.com
BlueCore ADK Audio Source Application User Guide
3. To Set Up the xIDE Project Environment
Different application builds can be made by changing compile time options, they can then be selected from the
Source application project properties and Enabled or Disabled as required. These options are described in more
detail in sections 3.1 to 3.10.
Note:
Including project options that are unsupported by the hardware you are using may produce the error:
Application uses trapsets which firmware doesn't support.
When running on BlueCore5-MultiMedia hardware the Execution Mode should be left on the setting
Hardware Default or set to Native mode, Assisted Native mode is not available with this platform. Only
Assisted Native should be selected when using CSR8670.
3.1. Supporting Different Input Source Modes
Audio Source application supports both USB and Analogue input modes which can be determined at build time:
1. Run xIDE, and open the source.xiw workspace:
<installed directory>\apps\source
2. Amend the Project Properties with the required input source. Setting the Analogue Input option
configures the application for Analogue Input mode rather than USB.
3. Setting the correct .psr file depends on the input source, i.e. USB or analogue:
3.1. Use source.psr and source_usb.psr for USB operation
3.2. Use source.psr and source_analogue.psr used for Analogue operation
The correct .psr files can be merged manually.
Note:
The input mode can also be determined at run time by changing the User PS Key for USB configuration
(PSKEY_USR9). If no USB audio is configured then it falls back to Analogue Input mode. The rest of the
application may not be configured correctly for Analogue mode in this case though, e.g. the sample rates
supported for Analogue and USB modes may be different.
3.2. Supporting Dual Stream
To support dual stream functionality set the DualStream option in the Project Properties.
Then DualStream must be enabled in the User PS Key for DualStream (PSKEY_USR2). There is an enable
feature bit which must be set.
Dual Stream is described later in this document.
3.3. Enabling Button Operation
Setting the Button option in the Project Properties enables button handling in the application.
Button events are created using the ButtonParsePro generation tool, where the buttons are defined in
source_buttons.button.
3.4. Enabling LED Operation
Setting the Leds option in the Project Properties enables LED handling in the application.