LSM6DS0, with zephyr shell command, receiving "z_arm_hard_fault"

I'm working on an nrf52840 dk. I need to print the sensor data on the command line. I've added the sensor config to the prj.conf file as well as the sensor and sensor_shell. In the command line, when I type the command, "sensor get LSM6DS0" , I receive a "z_arm_hard_fault". What could be the issue? Anyone?

I'll attach the fault I got.   

Parents Reply
  • Maybe. It may fix the LSM6DS0 issue if you connect it, but you should be getting an error message, not a hard fault.

    By "fetching data", do you mean that the hard faults occurs when cmd_get_sensor() calls sensor_sample_fetch()? Knowing exactly where the fault occurs would help a lot.

    How are the sensors wired to the board? Make sure you are using the correct pins and that you are using VDD and not nrf_VDD. You can also check that the power source switch on the board is set to VDD.

    Does device_get_binding() work for the LSM6DS0 sensor?

Children
No Data
Related