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.

RTOS/LAUNCHXL-CC1350: Not able to pass an integer value

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Tool/software: TI-RTOS

I am trying to pass an integer value through uart to be displayed on 4 digit 7 segment display type but it is not getting displayed. I am able to read it and write it but not able to print it. I am successfully able to pass a character value but integer is not passing.

  • Hi Shubham,

    Shubham Jindal said:

    I am able to read it and write it but not able to print it. I am successfully able to pass a character value but integer is not passing.

    This statement is a little confusing, can you explain in more detail?  Have you tried using the UART driver to communicate with a terminal on your PC (uartecho example)?  Do you see the data being received correctly?

    UART_write() takes a handle & a pointer to the data to be sent.  Can you confirm that you are placing the integer into a buffer & passing the buffer address as a parameter?

    Can you post the code used to write the data?

    Regards,

    -- Emmanuel

  • Hello Sir,
    Thanks for the reply sir. I am able to figure out what was wrong in it. Sir, Can you please tell me, How can I use Rx and Tx pin of Uart to send data from one cc1350 to another cc1350 module. And Can you please help me with Spi communication on cc1350 launchpad. Syntax for spi communication using cc1350 module.
  • Hi Shubham,

    For UART you need only cross the cables such that TX from one device is connected to the RX of the other & the RX of the first device is connected to the TX of the second.    Also, do not forget a ground connection between devices.  As for SPI, I already provided an example & information in your other post (link).

    If you are not familiar with these serial protocols here are some resources so you can learn UART & SPI.

    Regards,

    -- Emmanuel

  • Hello Sir,
    Thanks for the reply. I am not getting how to initialize Spi in cc1350 and how to send data through spi communication. Any help from your side would be of great value.