Posted on June 12, 2018 at 00:02The original post was too long to process during our migration. Please click on the attachment to read the original post.
Since I'm so new to the embedded world, I do not have a scope yet. I'll definitely do some research and buy an oscilloscope.
In the meantime, is there no other reliable way to detect whether the slave device is answering at all?
I'm using the STM32F407G-DISC1 board. And it's user manual definitely states that the accelerometer uses the SPI protocol. This is what the manual says:
The STM32F407VG microcontroller controls this motion sensor through the SPI interface.
This is on page 17 of DocID022256 Rev 6. So I think SPI should be fine.
Perhaps I should use the HAL driver functions first to see if the accelerometer is responding. If the works, at least I'll know that it's an issue with my code and setup of all the configurations. If it doesn't work, then I'm sure what to do at that point.