PSoC 4 BLE connected to BME280

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
PaHe_1325231
Level 3
Level 3
First like given

Hi

   

 

   

Could someone glance over my attached project. It is of I2C master taking data from BME280 environmental sensor and then transmitting the data out over BLE. I would like to view this data in Cysmart but I am unable to do so. Could someone have a look over my project please.

   

 

   

Regards

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In your i2c.h are two warnings which show up errors.

   

In BME_WriteReg() you have the line

   

    I2C_1_I2CMasterWriteBuf(BME_ADDR,(uint8 *)Write_Buf,2,I2C_1_I2C_MODE_COMPLETE_XFER);

   

Take the term (uint8 *)Write_Buf

   

Write_Buf is an array of 32bit integers and your statement will transfer the first two bytes of the array. That does not match at all.

   

Same applies for the warning-flagged lines.

   

 

   

Bob

View solution in original post

0 Likes
7 Replies