Using LSM6DSL with I2C taking the lsm6dsv16x sensor but giving reset when sampling frequency is setting.

when setting the fetching code this type of output is coming i.e board is resetting continuously and also Iam taken the  lsm6dsv16x drivers from browser 

Parents Reply Children
  • I am using VS code with nRF connect SDK v2.2.0, toolchain v2.2.0 & cmake v3.20.0.

    I ran % bin/symquery.exe -e build/zephyr/zephyr.elf 0x000045a2 this command from nRF connect terminal but  following error has shown

    ForEach-Object : Cannot bind parameter 'End'. Cannot convert the "build/zephyr/zephyr.elf" value of type "System.String" to type
    "System.Management.Automation.ScriptBlock".
    At line:1 char:23
    + % bin/symquery.exe -e build/zephyr/zephyr.elf 0x000045a2
    + ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [ForEach-Object], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.ForEachObjectCommand

    First of all, I need to understand whether lsm6dsl sample code works with the lsm6dsv16x(actual sensor connected to nRF5340). Atleast Iam expecting the following code should pass 

    const struct device *dev_imu = DEVICE_DT_GET_ANY(st_lsm6dsv16x_i2c);
                   
            if (!device_is_ready(dev_imu)) {
                    printk("st_lsm6dsl: device not ready.\n");
                    return;
            }
    Device tree config
    lsm6dsv16x.yaml file is created manually, it looks like this (referred from lsm6dsl.yaml)
    The log is same which I shared staring of this conversation.
    Please analyze and let me know the possible reason.
    Is there any sample code for lsm6dsv16x which I can ran directly?
  • Virat said:
    Is there any sample code for lsm6dsv16x which I can ran directly?

    The sample is not for our boards, but there is https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/shields/x_nucleo_iks4a1/sensorhub1/README.html.
    However, the Zephyr drivers should be used similarly.
    Can you take a look at the setup in this sample and see if it matches yours?

  • Hi Edvin,

    Now I am Using laser(VL53LOx),IMU sensor(LSM6DSV16x),ultrasonic sensor(CH101) but individually IMU sensor is working fine but the issue is at the time of configue the both sensors imu sensor is not initialize.So,please send how to configure the both sensors in devicetree at a time.

  • Hi Sigurd is out of office so I will take over the case

    Please upload your devicetree, prjf.conf and error log. 

    If you have not please enable config_log so we can get some information. I would also suggest that you set CONFIG_RESET_ON_FATAL_ERROR=n so the device do not reboot on fatal error

    Regards

    Runar

Related