hi,i wanna read the imu sensor lsm6ds3 on board of nrf52840 based Xiao BLE Sense
so i used the code in samples /sensor/lsm6dsl
first i didn't know if i do have to create an overlay file since the imu is build in and eventually i created this overlay file" xioa-ble-nrf52840-sense.overlay":
/*
* Copyright (c) 2022-2023 Marcin Niestroj
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
model = "Seeed XIAO BLE Sense";
compatible = "seeed,xiao-ble", "seeed,xiao-ble-sense";
lsm6ds3tr-c-en {
compatible = "regulator-fixed-sync", "regulator-fixed";
enable-gpios = <&gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
regulator-name = "LSM6DS3TR_C_EN";
regulator-boot-on;
startup-delay-us = <3000>;
};
};
&i2c0 {
compatible = "nordic,nrf-twim";
/* Cannot be used together with spi0. */
status = "okay";
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
clock-frequency = <I2C_BITRATE_FAST>;
lsm6ds3tr_c: lsm6ds3tr-c@6a {
compatible = "st,lsm6dsl";
reg = <0x6a>;
irq-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
which is paracticlly the same in xioa-ble-nrf52840-sense.dts
plus i didn't know if i need to make changes in the originall code of lsm6dsl
so when i build i got error involve this line
const struct device *const lsm6dsl_dev = DEVICE_DT_GET_ONE(st_lsm6dsl); and it seems they are using xiao-ble.dts and not xiao-ble_nrf52840_sense.dst so can you help me