Running the LSM6DLS (IMU) zephyr example with nrf52840 based Xiao BLE Sense

Hi all,

I've been trying to get the samples/sensor/lsm6dsl example working with the nrf52840-based Xiao BLE Sense and have had no luck.

I guess that it's due to the power line for the sensor being connected to the P1.08

I dug into the xiao_ble_sense.dts and I can indeed see:

However no matter how I try and drive it from the code the sensor refuses to initialize with the console output:

My code to run is based of the sample code for the sensor with the lsm6ds3tr_c_en modifications:



And my prj.conf:

I am trying to drive this the proper way but am I missing something obvious?

Should I just ignore the config and drive P1.08 manually?

Thanks for taking a look!
I'm using nRF Connect SDK v2.6.0 (latest available at the time of posting)

Parents
  • I am having the same issue.
    I compiled the sample code and flashed it to the board. I am getting the same error messages. Nothing seems to work for me so far

Reply
  • I am having the same issue.
    I compiled the sample code and flashed it to the board. I am getting the same error messages. Nothing seems to work for me so far

Children
  • I have to add that using the i2c command on the shell seems to work. I could connect to the sensor and read a register. But the example code does not work. 

  • Hello Ammaro,

    Can you share the code you used to configure the i2c on the shell to work?

    Thanks for your help.