This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI_I2C_Error

main.cHi,

I am having an issue with I2C transaction in my program.

There are two sensors(Touch and Temp) connected to the I2C bus. Touch sensor is working well when I added Temp senor config, it started showing I2C error.

In my program line 407,408 are used to read Temp sensor. I am always getting error messages on these two line.

Any advise would be much appreciated.

Regards Siva

Parents
  • Hi John,

    Even though if I define incorrect address, the compiler should at least compile independent to actual hardware. My concern is why it's not complying instead it's showing "..../app_twi.h:76:40: error: large integer implicitly truncated to unsigned type #define APP_TWI_WRITE_OP(address)" (((address)<<1)|0)".

    I didn't understand this error.

    Regards Siva

Reply
  • Hi John,

    Even though if I define incorrect address, the compiler should at least compile independent to actual hardware. My concern is why it's not complying instead it's showing "..../app_twi.h:76:40: error: large integer implicitly truncated to unsigned type #define APP_TWI_WRITE_OP(address)" (((address)<<1)|0)".

    I didn't understand this error.

    Regards Siva

Children
No Data
Related