Thi is an application testing my out-of-tree module for Zephyr RTOS.
Copied from zephyr/samples/sensor/lsm6dsl
. The only modifications are :
boards
dir with an overlay for H743ZI. It defines a LSM6DS3 accelerometer.- LSM6DSL changed to LSM6DS3 in 3 places.
cmake -B build -G Ninja -DBOARD=nucleo_h743zi -DBOARD_ROOT=. -DZEPHYR_EXTRA_MODULES=~/my-zephyr-module .
ninja -C build
west flash
I used nucleo_h743zi, and I provided an overlay for it. You can use any other target supported by Zephyr.
LSM6DS3 | nucleo_h743zi |
---|---|
SDA | PB11 |
SCL | PB10 |
INT1 | PD11 |