LIS2MDL BDU only works for 3 axis independent readouts
HI, it seems to me that reading the LIS2MDL sensor only works correctly if I read first the X axis, then the Y axis, and finally the Z axis separately, each axis in a separate SPI transaction.
HI, it seems to me that reading the LIS2MDL sensor only works correctly if I read first the X axis, then the Y axis, and finally the Z axis separately, each axis in a separate SPI transaction.
Problem solved
I found similar topic: https://community.st.com/t5/stm32-mcus-products/stm32f767-spi-bidirectional-receive-mode-more-spi-clocks-are/m-p/213384#M46791
And this description why STM32HAL cant handle bidirectional SPI properly:
http://efton.sk/STM32/gotcha/g32.html
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.