Problems with LIS3DSH, always receiving 0xFF
Hi,
so a few months ago I wrote a program to read values from LIS3DSH sensor. It was working good until last week Z axis stopped working, and this week Y axis also. It always sends back 0x8080 values, while X axis is still working great.
I have a custom PCB board with STM32F407VG and LIS3DSH (and more :) ) and this problem only occures on this board - when I put the same program to STM32F407VG - DISC board it works great, thats why I don't think there is a problem with my program or my SPI configuration.
So, I decided to change LIS3DSH to a new one (I can do that because it's changeable on my board). The problem is that new LIS always responds 0xFF to whatever I send to him. To be fair with you, I don't remember now if I had to anything special at the first start up of the old LIS3DSH, but the one doesnt wont to work with the same program that DISC works.
Does anyone had this kind of problem? Or maybe, there is a special config to put at the first start up (but I cant find it)?
Thank you and have a nice day! :)
