This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5659+PAN1325

Other Parts Discussed in Thread: CC256XMSPBTBLESW, CC2560, MSP430F5438

Hi,

We are using Bluetopia LE stack for our project.My user application consists of an audio playback at particular intervals.The problem now is whenever i tried to call my audio related file from the  bluetopia stack its not working. I can just hear a beep sound through the speaker.Can anybody tell me the frequency settings required for playback audio with Bluetopia LE stack.When i load my user application alone without BLE stack it works fine, but when i try to add BLE stack and make a function call for audio  from inside BLUetopia code itts not working, Why is this.What changes i have to make inorder to play my audio properly while in bluetopia stack

  • Hi,

    I did not understand what do you men by Bluetopia LE stack?

    are you using the CC256XMSPBTBLESW(V1.4 R1) from http://www.ti.com/tool/stonestreetone-bt-sdk

    and you are talking about the audio playback, what profile you are you using? As far as i know you need to use classic Bluetooth profile and not BLE profile.

    More over you are using PAN1325(http://www.ti.com/product/cc2560-pan1325), so you are using CC2560, which supports only classic Bluetooth and does not have support for BLE.

  • Hi Sundeep,

    The Audio playback is only voice based feedback played from MSP430 like in User_experience code for MSP430F5438 experimenter kit. It is not routed through BL chip.

    The implementation is very simple, we are receiving a command through Bluetooth and based on the command we play back one of 3 short audio messages.

    We are not using classic Bluetooth and our application do not require such high data rate. Audio is limited to only three messages each a few seconds in length and around 8KHz sampling.

    Both these codes are working individually. We are able to playback Voice messages from MSP430 individually and Bluetooth works individually. But the issue is that when implemented in Bluetooth code even when SMclock is set to 16MHz, we get erroneous playback. So we tried implementing the following, in the code where Bluetopia APIs are included, but none of BT related functions are called.

    int main(void)
    {
        WDTCTL = WDTPW | WDTHOLD;
        halBoardInit();
        LFXT_Start(XT1DRIVE_0);
      Init_FLL_Settle(16000, 488);
       SFRIE1 |= OFIE;
       Audio(1, Message_1);
        while (1);

    Please note that board init, FLL and clock init are set for Audio playback and works in a separate project, but not in a code where Bluetooth stack APIs are loaded. Does the APIs included in project (Those in Bluetopia folder) affect initialization of clock in any way?

    Regards,

    Jojan

  • Hi Sundeep,

    A quick word on the above setup.

    Profile used is SPPLE, Customized bluetopia stack is used. Audio playback code as implemented in User_experience of MSP430- EXP5438A experimenter kit is used to play back sound. 

    Timer A is used for Bluetopia and Timer B  for Audio playback. Sound files are stored in a location in flash are are played back. Executed the code after removing all Bluetopia related files including HAL and have the same issue. What stays from SPPLE project is the Include files from Bluetopia folder and Project setting. Exact same code and files in a separate Project doesn't give any error and works seamlessly. 

    Issues we find are,

    1) Resets upon initialization of timer. 

    2) Clock is set for 16MHz, timer initializes and plays back audio in Test code, clock is set for 16MHz, timers creates occasional resets and do not play back audio in project with properties of SPPLE code. 

    We are trying to look into project properties. Do you have any suggestions? Is there a chance that .a files and files in include directories of Bluetopia is causing the issue?

    Regards,

    Jithin

  • Hi Sundeep,

    It turns out that the issue is with code and data memory model selected. In SPPLE code Code memory is selected to be Large type and data memory is small type.

    Playback of audio as in User_expereince code needs data memory of the type large or restricted. Any thoughts on making Audio playback work in small data memory model or vice versa?

    Thanks,

    Jithin

  • Jithin,

    I'm not sure about the audio playback but If you want the Bluetooth stack in a different memory model you need to contact sales@stonestreetone.com for a custom stack. 

    Thanks,

    Stonestreet One.