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.

adding UARTcapabilities to CC1350STK simple_peripheral example instead of LCD

Other Parts Discussed in Thread: CC1350

Hi,

This is the first time I am using a TI device and I have no experience with BLE. I am currently looking at the simple_peripheral example and I've noticed that the LCD is being used to display information

"dispHandle = Display_open(Display_Type_LCD, NULL);"

However, I do not have a LCD on the sensortag. What I currently have is a sensortag connected with a DEV-Pack I have programmed the device using the simple_peripheral_cc1350lp since there wasn't one for cc1350stk.

I could currently detect and connect to the device on my phone and retrieve the characteristics values that was send from the example through BLE. I would really like to be able to use UART for the display instead of LCD but I am unable to achieve this. I tried to use "dispHandle = Display_open(Display_Type_UART, NULL);" which I used when I was working on a previous example (wsnNode & concentrator) but I was not able to get anything at all to display on the serial port through putty. I would really appreciate if you could shine some light on to me as I think I am missing a lot of knowledge in this area.

Thank you

Tony

  • Hi Tony,

    You're on the right track using dispHandle = Display_open(Display_Type_UART, NULL); . You should also look in the project predefines (Properties -> Build -> ARM Compiler -> Advanced Options -> Predefined symbols) to see if there is a define blocking UART use (BOARD_DISPLAY_EXCLUDE_UART) or a define blocking all display types (Display_DISABLE_ALL).
  • Thanks for the reply Marie,

    I have checked the compiler options and did find both of those being defined so I have removed them, clean, build and program the device. But unfortunately I am still not able to receive anything on putty from the simple_peripheral project. I am not sure at all at this point why this is happenning since the rfWsnDm project's UART works when I try to run that project again. so its related to the simple peripheral project somehow.

  • Additionally, I am using the CC1350 LaunchPad simple_peripheral project files as there wasn't one for the CC1350 SensorTag. could this be the cause of this problem ?
  • Hi Anan,

    You said that you can see the device and read its characteristics on your phone, is this when running the simple_peripheral project? What steps did you take to port the simple_peripheral project from LaunchPad to SensorTag?

  • Hi Marie,

    Maybe I was a bit unclear. I am using only just a cc1350 sensortag with the dev pack. But i was unsuccessful in finding the simple_peripheral project that is for the sensor tag. So I had to build and program the sensor tag with the simple_peripheral CC1350lp project files and it seems to be the only one that could build and program sucessfully. The problem I now have is UART not working at all. And I suspect that this maybe related to the fact that I am using the project files that are meant for the launch pad possibly ?

    Thanks

    Anan

  • Hi Anan,

    You have to port the project from CC1350LP to CC1350STK. If you're working with the BLE stack version 2.2.1, you can do this by going to the project predefines and replace CC1350_LAUNCHXL with CC1350STK. Please let me know if you're working with a different version of the software.
  • Hi Marie,

    thanks ! UART is now working after I change the predefine to CC1350STK

    Anan