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

Parents
  • Hi,

    Under the Zephyr installation tree:

    zephyr/samples/sensor/bme280

    I configure the build using:

    export ZEPHYR_GCC_VARIANT=gccarmemb

    and build using:

    make BOARD=nrf51_pca10028

    1. Can you direct me to the files which implement the i2c in the Zephyr OS for the nrf51 board, and the file defines the pinout for the peripherals such as the i2c and spi ?

    2. Are you expecting the Zephyr OS 1.6 pulled from the official Zephyr repo to work or is there an alternate location were I should be pulling it from?

    BR Paul Grant

Reply
  • Hi,

    Under the Zephyr installation tree:

    zephyr/samples/sensor/bme280

    I configure the build using:

    export ZEPHYR_GCC_VARIANT=gccarmemb

    and build using:

    make BOARD=nrf51_pca10028

    1. Can you direct me to the files which implement the i2c in the Zephyr OS for the nrf51 board, and the file defines the pinout for the peripherals such as the i2c and spi ?

    2. Are you expecting the Zephyr OS 1.6 pulled from the official Zephyr repo to work or is there an alternate location were I should be pulling it from?

    BR Paul Grant

Children
No Data
Related