Hi
Which version of NCS are you using? Can you also share your prj.conf
When you say sleep, which power mode is it? If it is in system of then you need an external event to wake it up, either on a GPIO or NFC
Regards
Runar
The NCS version I used is 2.6.1 and the prj.conf of the program is
Thank you.
Is that your entire prj,conf? I see no reference to the sensor there. Is there a reason why you are not using the Zephyr driver?
Also please upload your overlay.
Regards
Runar
This is the prj.conf completely and the device tree is already provided when you select the board xiao ble sense it looks like this
Thank you
So just as you might be aware with NCS we are using an RTOS names Zephyr. With Zephyr there is a number of different sensors supported so that you don't need to write your own driver. I would recommend that you use the zephyr driver and the sensor api instead of trying to write your own. I would recommend by starting with the LSM6DSL sample
Regards
Runar
But it is mentioned device tree of Seeed Xiao Ble sense that the sensor lsm6dstrc inside it is compatible with LSM6DSL
But it is mentioned device tree of Seeed Xiao Ble sense that the sensor lsm6dstrc inside it is compatible with LSM6DSL
Hi
I think we are talking a bit past each other. Just so that we don't have any misunderstandings. Have you worked with Zephyr before? If not I would recommend that you at least have a look at our NCS Fundamentals course.
I see that your prj.conf you have not enabled CONFIG_LSM6DSL or any other Kconfig which should be enabled when working with peripherals. I would again advice that you at least take a look at the sample I mentioned in my last reply where you can see how to use the sensor api and the driver that is already in Zephyr
Regards
Runar
I have tried changes to the prj.config file as you said. Added CONFIG_LSM6DSL=y
Still unable to get the interrupt from LSM6DS3TR_C, In the program I have used the WAKE_UP_SRC register to check the Free_Fall bit flag raise. I intended to generate gpio interrupt this way.