Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 4 months ago.
Not initializing
Hi,
I'm trying to use this library on an STM32 F401 board and can't get it to work. The only thing I've changed in the code is the pins to match that of the ST board. Not sure why but I keep getting "LPS331 is unavailable". From going through your code I dont know why it might not be working. I plugged it into my arduino to see if it was an issue with the IC but it worked fine with the arduino. Any thoughts?
Is the address pin high as it is set for in the code?
posted by Erik - 18 Jul 2014if you mean the chip select (CS) pin, yes it is held high.
I've looked at the sequence on the oscilloscope and the Nucleo appears to be sending the right initialization: - Start - Address | 0 - Start - Address | 1 ..... wait for data from slave
posted by Frederic Bourgault 21 Jul 2014