SensorTile Drivers and Implementation
Hello All,
I am having a a bit of an issue working with my SensorTile kit. I am able to get the demo apps working and so on, but I now want to start on my own project.
For the moment I have just tried to set the MCU up using CubeMX and I am trying to use the
https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm6dsm_STdC
and I am only concentrating on the LSM6DSM. From what I understand all one has to do is write a function for SPI TX and RX and the rest should be taken care of by the driver. I have tried to emulate what the provided example does, but when I try to test communication by reading the WHO_AM_I register, I get no response. Attached is my main.c file and a screen shot of how I set SPI2 up in half duplex master mode. I have also attached the SPI.c that is generated by CubeMX.If anyone can see anything I am doing incorrectly, please don't hesitate to point it out. Or Is it perhaps worth moving to the drivers in the x-cube-mems1 drivers.
Thanks,
Dylan
