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

Procedure for using TWI for I2C between the NRF52DK BMX055

Hi Nordic,

I am a beginner in programming outside of the Arduino IDE. I'm familiar enough with C to understand much of the code in the examples, but using I2C with the above mentioned sensor has proven to be quite challenging for me.

I am using Segger Embedded Studio 3.5 with the NRF52 DK SDK 15.2.0 on a windwos 10 machine.

I am trying to read the gyroscope information on the BMX055 sensor through the TWI interface using the Bosch BMA2x2_drivers. 

To start, I opened the example "twi_master_with_twis_slave_pca10040”  and made the following changes to the config.h file as per my design.

#define TWI_SCL_M           26      //!< Master SCL pin.

#define TWI_SDA_M           27       //!< Master SDA pin.

The initialization of the service seems to be handled in main. I address of the gyroscope on the chip in question is 0x69, but that is as far as I have gotten. 

Related