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.

LAUNCHXL-CC1350: I2C Bus Faults on I2ctmp007_CC1350_LAUNCHXL example

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

Hey All, 

I recently purchased a CC1350_LAUNCHXL and a Sensor Boosterpack. I stacked the two together and try to execute the tmp007 example on the SDK. 

I get the issue of it saying 

Starting the i2ctmp007 example

I2C Initialized!

I2C Bus fault

I2C Bus fault

I2C Bus fault

Is there anyway to fix this issue?

Thanks

  • If I am not wrong, tmp007 is EOL and not put on latest Sensor Boosterpack. That's why you see this I2C Bus fault.
  • Hello Kevin,

    please check your BP version and a chip used as a temp. sensor.

    One remark.
    i2ctmp007.c has a bug.
    The declaration:

    uint16_t temperature;

    and than:
    /*
    * If the MSB is set '1', then we have a 2's complement
    * negative value which needs to be sign extended
    */
    if (rxBuffer[0] & 0x80) {
    temperature |= 0xF000;
    }
    /*
    * For simplicity, divide the temperature value by 32 to get rid of
    * the decimal precision; see TI's TMP007 datasheet
    */
    temperature /= 32;
    Display_printf(display, 0, 0, "Sample %u: %d (C)\n", i, temperature);

    In case of negative value the '-' sign added and then shift to right by 5 bits.

    It is rubbish.
    It should be signed variable and casted to (int) as an argument for Display_printf().mp. sensor.