2019-10-09 02:19 AM
I'm using with cubemx the additional sotfware X-CUBE_MEMS1 with Terminal data logger and chose the mems LP22HB on a nucleo F401RE.
When I do it in I2C it's working fine.
No I configure the LP22HB in SPI with CS on GND. And connect for SPI. I configurate the SPI1 with pull-up on SCL,Clock Polarity HIGH,Clock phase 2 Edge, prescaler 32.
But no communication!
I see the clock at the beggining but nothing on MOSI or MISO on a scope.
I join the project!
Can you help me
2019-10-09 08:33 AM
Hi @william.le-coz , but is your CS fixed to GND? Please note that for the SPI communication, the transition high to low of the CS pin is required.
Regards
2019-10-14 07:03 AM
Thanks, it's working now :smiling_face_with_smiling_eyes: !
I use CS with pull-up and MISO and MOSI with Pull-down.