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.

CCS/LAUNCHXL-F28379D: How to view SCIRXBUF contents after receiving data over Bluetooth in Debugger Mode

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello,

I am working on a code for Motor control which requires to receive control information wirelessly over the Bluetooth. I am sending a packet of 3 bytes to be stored in the SCI port B RXBUF. I wish to see what is the received data in the debugger mode. I have the SCIRXBUF in the Expression watch list but I do not see the values change after running the code on the board. 

Will this be considered Real-time Debugging? I am new to such kind of debugging and the help is really urgent for my project as I feel the C2000 is not receiving what it should over the bluetooth and I need to decode that.

Thank you in advance.

  • Hi Ria,
    I have passed your question to the SCI domain expert. Someone will be getting back to you shortly.
    Thanks,
    Krishna
  • hi Ria ,

    Rather than reading the data directly from the register it would be better to read it into a variable.
    Using receivedChar = SCI_readCharBlockingFIFO(SCIA_BASE);

    Can you refer to the below SCI echoback example which handles receive of data from a hyperterminal .
    In this case it can be the packets received over bluetooth .

    c2000ware\driverlib\f2837xd\examples\cpu1\sci\sci_ex3_echoback.c

    View the "receivedChar" variable.

    No this is not Real-time Debugging.

    Regards.
  • Hi Meghana,

    Thank you for the response. I tried SCI echoback but it seems I am missing something in the external connections. The code says connect GPIO28 and 29 to Transceiver and cable, but it seems like the GPIO28 and 29 are not on the C2000 board which is why I feel I could not get echoed back values.

    Any suggestions how do I configure that part?

    Thank you.

    Regards,

    Ria

  • Hi Ria,

    First, you cannot see all the characters in the SCI RX FIFO. You should however be able to view the first character in the RXBUF. The other characters in the FIFO are not visible, until they reach the RXBUF register. This is done by reading the current character from the RXBUF. Then, like a FIFO, everything will move up in the FIFO.

    Second, what board are you using? What GPIO pins are you using for SCI communication?

    You may want to confirm that loopback is working first for your SCI configuration , and then debug your connections.

    Regards,
    sal