Skip to content

I2C Initialization fails  #42

@starrobin34

Description

@starrobin34

Hello everyone!

The Sparkfun 9doF Stick won't initialize via I2C throwing up this error:

[ 2464][E][Wire.cpp:422] beginTransmission(): could not acquire lock
[ 2470][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
[ 2477][E][Wire.cpp:422] beginTransmission(): could not acquire lock
[ 2483][E][Wire.cpp:526] write(): NULL TX buffer pointer
[ 2488][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
[ 2494][E][Wire.cpp:481] requestFrom(): NULL buffer pointer
[ 2500][E][Wire.cpp:557] read(): NULL RX buffer pointer
[ 2505][E][Wire.cpp:422] beginTransmission(): could not acquire lock
[ 2511][E][Wire.cpp:526] write(): NULL TX buffer pointer
[ 2516][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
[ 2522][E][Wire.cpp:481] requestFrom(): NULL buffer pointer
[ 2528][E][Wire.cpp:557] read(): NULL RX buffer pointer
Failed to communicate with LSM9DS1.

I've double checked the wiring and when running an I2C scanner I get the address for the accelerometer (0x6B) but not the address for the Magnetometer.
I've tried:

  1. Lowering clock speed
  2. Manually transmitting
  3. adding delays

Help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions