I have been smashing my head on the wall for several days about a simple SPI communication between a STM32L4 and a LIS3DSH accelerometer.
When I was trying to read some INFO register, I could never read it well. It seemed that as soon as I read the first "1" bit, all the remaining bits were stuck at "1". For example, if I wanted to read a register containing 0x0A (0b00001010), it would read 0x0F (0b00001111). As soon as I unplugged the AD2, the reading was successful. The scope probe breakout board is plugged in, and I use DIO0 to DIO3 for the signals from the header of the scope breakout. I use 2.5" jumper wires and I correctly grounded.
You guys have any idea why the AD2 interferes like this?
Question
Xavier Bernard
Hi,
I have been smashing my head on the wall for several days about a simple SPI communication between a STM32L4 and a LIS3DSH accelerometer.
When I was trying to read some INFO register, I could never read it well. It seemed that as soon as I read the first "1" bit, all the remaining bits were stuck at "1". For example, if I wanted to read a register containing 0x0A (0b00001010), it would read 0x0F (0b00001111). As soon as I unplugged the AD2, the reading was successful. The scope probe breakout board is plugged in, and I use DIO0 to DIO3 for the signals from the header of the scope breakout. I use 2.5" jumper wires and I correctly grounded.
You guys have any idea why the AD2 interferes like this?
BR,
Xavier
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.