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.

EK-LM3S6965 and CC85XXDK-HEADSET SPI problem



Currently, I’m trying to run EHIF commands from a host (EK-LM3S6965) to CC85XXDK-HEADSET.

1. Connections are made as described below:

SSI0CLK_PIN             -> SCLK

SSI0FSS_PIN             -> SCLK

SSI0RX_PIN              -> MISO

SSI0TX_PIN              -> MOSI

CS_GPIO_PIN                   -> CSN

RST_GPIO_PIN          -> RESET_N

2. I flash CC85XXDK-HEADSET with the slave device configuration and select host-controlled operation and set GIO3 in IO mapping panel as "External host interface interrupt".

3. I took “E1805.lm3s6965_ehif.txtHIF example code for MSP430” as reference and modify it for LM3S6965 compliance. The source code is attached.

First step is to correctly read the Status Word, but, unfortunately, I read only 0xBFFF or 0x0000 if I execute the DI_GET_DEVICE_INFO command. I’m sure that I send correctly the command because I set the SSI in loopback mode and I can read the exactly data I have sent via SPI.

There is something else that I should take into account? I will appreciate if you can help me in finding the problem.

Thank you,

Ovidiu

  • Hi Ovidiu, 

    Any chance you can attach a capture of the SPI traffic with a logic analyzer and attach to this post? 
    It might be helpful discovering what is causing your issue. 

    Please verify that you SPI setup is according to the SPI INTERFACE CHARACTERISTICS in the datasheet. 

    Best regards,
    Kjetil 

  • Hi Kjetil,

    Thank you for the reply. Apparently, there was a problem with the sys_reset() procedure and the battery voltage, also, since I was running on Headset battery only. As soon as I plugged in the USB cable, I assume that the voltage reached a valid level for a proper functioning.

    There are other questions for handling the audio streaming.

    Which are the steps for a correct setting a host controlled slave device in order to stream audio signal from an autonomous operation master that has connected an audio input signal?

    1. NWM_DO_SCAN
    2. NWM_DO_JOIN
    3. NWM_GET_STATUS
    4. NWM_ACH_SET_USAGE ?

    Anyway, I attached the code to whom might be interest in controlling such devices with LM3Sxxxx.

    6864.lm3s6965_ehif.txt

  • Hi Ovidiu !

    When starting up and connecting to an autonomous master with an host controlled slave the correct steps are :

    1. SYS_RESET
    2. NWM_DO_SCAN (this is not needed if you have stored the network address of the master)
    3. Until join operation is successful:
    1. NWM_DO_JOIN
    2. NWM_GET_STATUS
    • NWM_ACH_SET_USAGE
    • VC_SET_VOLUME (unless remote controlled)
    Best regards
    Ole A.