cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f407 interface with IIS3DWB using X-CUBE-MEMS1

Kumar123
Associate

Hi

I need guidance on how to write the logic for interfacing the STM32F407 with the IIS3DWB vibration sensor after installing the X-CUBE-MEMS1 package and selecting SPI2 to generate the code.

2 REPLIES 2

Have you checked the documentation for X-CUBE-MEMS1 ?

https://www.st.com/en/embedded-software/x-cube-mems1.html#documentation

UM1859Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube sounds like the place to start ...

Hi 

"I installed the X-CUBE MEMS1 package and configured SPI2 in the STM32. I generated BSP packages and generated the IIS3DWB source and header files. After writing the code (which I've attached here), the sensor is not vibrating. Could you provide some suggestions?"