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

I2C problem Zephyr OS sensor example

Hi,

I'm trying out the Zephyr os for the NRF51.

When I try the basic BLE example they work fine!

However when I try the sensor example which uses the i2c it falls over with the following error:

dev 0x00000000 name ***** HARD FAULT ***** Executing thread ID (thread): 0x20001310 Faulting instruction address: 0x00000868 Fatal fault in ISR! Spinning...

Is the i2c on the nrf51 setup by the nrf51 sdk?

When configuring the i2c what should the following configs be set to:

CONFIG_I2C_0_NAME=? CONFIG_I2C_0_DEFAULT_CFG=? CONFIG_I2C_0_IRQ_PRI=?

BR Paul Grant

Related