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.

MSP430+Audio Capacitive Boosterpack NEED uif_readArray

Other Parts Discussed in Thread: MSP430G2553, MSP-EXP430FR5969, MSP-EXP430FR4133


I'm having the problem of not being able to use uif_readArray API because it wasn't implemented in the ACTBP_uart.c

I can't find the uif_readArray API code anywhere.

According to one of the TI wiki pages: Three UART API have been implemented in the host application based on the general UART APIs recommended in C5535 Software documentation wiki. Given the limited on-chip RAM (512 Bytes) on the MSP430G2553 MCU, the API for array reads has not been implemented.

What I am trying to do is turn on an LED, Play a file, and when the file is finished playing, turn the LED off. My idea was to have a while loop checking the current file playing and when it changes to a different file, it turns the LED off. But i assume the only way to check current file playing is reading from the "current_play_file" virtual register by the following command:

My guess is the code to use readArray will lool like this:
        RegAddr = UIF_CMD_CURRENT_PLAY_FILE;
        char file_playing[];
        status = uif_readArray(RegAddr, &file_playing;
       



Thank you for any help or suggestions.

  • Hi Daniel,

    The quote that you mentioned says that the command was not implemented in the example because the G2553 has only 512 bytes of RAM - so it sounds like you aren't going to be able to implement this command on the G2xx3 device. You will probably need to port your code to work with a different Launchpad with a device with more RAM - like the MSP-EXP430FR5969 or MSP-EXP430FR4133 launchpads for example.

    I've moved the thread to the (DO NOT USE) C5000 Ultra Low Power DSP Forum, because it sounds like you need to implement something to interface with a particular command on the C5000 side. Since I'm not familiar with the code in the C5000 and what it needs for this, I think it makes sense to move the thread (however I'll stay on copy too in case it turns back into an MSP question).

    Regards,
    Katie

  • Hi,

    Moving your post to right forum to be better answered.

    Thanks & regards,
    Sivaraj K
  • Hi,

    Moving back to c5000 forum as i understand that the C5000 forum owns the audio cap touch boosterpack from Katie Pier's e-mail. Actually, the customer is talking about code that runs on the MSP, but he is asking about implementing some function that interfaces with the C5000 “virtual registers.

    Thanks & regards,

    Sivaraj K

  • Hi,

    As mentioned in the wiki page - http://processors.wiki.ti.com/index.php/Audio_Capacitive_Touch_BoosterPack_MSP430_Software

    The host application uses the hardware UART on the MSP430G2553 MCU to communicate with the Audio Player Recorder Framework on the C5535 DSP. Based on the detected user input event, the state machine is updated and the appropriate UART command or sequence of commands is sent to the DSP to achieve the desired system response. The Virtual Registers of the Audio Player Recorder Framework can be written to or read from using scalar (6-byte packet) or array (custom-defined length) UART packets

    Three UART API have been implemented in the host application based on the general UART APIs recommended in C5535 Software documentation wiki

    ·    uif_writeScalar

    ·   uif_writeArray

    ·   Status uif_readScalar

    Again as mention in the Wiki, “Given the limited on-chip RAM (512 Bytes) on the MSP430G2553 MCU, the API for array reads has not been implemented”. So I do not think you will be able to find the Read API that you were looking for.

    From DSP Software perspective, it would be a black box. Below are more details.

    ·         The C5535 DSP code is a black box for the ACTBP due to licensing restrictions.

    ·         There is no ability to update the ACTBP C5535 DSP software.

    Hope the above clarifies.

    Regards

    Vasanth