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.

TIDC-CC2650STK-SENSORTAG: Temprature sensor is not responding on LCD DevPack

Other Parts Discussed in Thread: BLE-STACK, TMP007


I am using SenorTag BLE with LCD DevPack. I have compiled stack and LCD devpack app successfully using BLE-STACK v2.1 with CCS6 and ran it on the device, the LCD was working and showing BLE state and some other info.
I want to have the temperature displayed on the LCD screen. So i found out that there is a preprocessor symbol of EXCLUDE_TMP, i have removed it. 
I have also changed 




in SensorTmp007_init(). After this i compiled and ran the application and saw that it hangs at:

success = SensorI2C_writeReg(TMP007_REG_ADDR_CONFIG, (uint8_t*)&val,

in the file SensorTmp007.c

Can you please help me resolve this issue? How can I display the temperature on the screen

Kind Regards

  • Hi MoonDrop,

    Do you have a logic analyzer so that you can monitor the communication on the I2C lines?

  • I have just tested BLE Stack 2.1 with CCS 6.2 and have no issues with reading and writing to the TMP007. I did exactly the same changes as you did, so it seems like an I2C issue.

    • Have you done changes to the code apart from including the temperature sensor in the build?
    • Do you have a second SensorTag you could try out? Perhaps your unit is faulty.
    • What CCS" version are you using?

    As a shot in the dark you could increase 

    #define SENSOR_TASK_STACK_SIZE 600

    but I doubt very much if this is the issue. This is in the file sensortag_tmp.c