Problems with LSM6DSOX basic operation
I've got something really screwy going on with the LSM6DSOX chip. I've got it hooked up in simple form using 4 wire SPI mode 0 and 3. I can talk to the chip just fine. Read and write no problem.
The first problem is that I want to do a SW reset. Setting the SW_RESET bit in CTRL3 easy enough but the part a) never resets as far as I can tell and b) never clears that bit, ever. Until I write that as 0.
The second problem is that I can't get the part to actually start taking accelerometer samples. Because I can't get the part to reset to factory via SW reset, I just wrote factory defaults to all the registers and set it that way. From there I used the following simplistic approach from an ST App Note:
- Write INT1_CTRL = 01h// Acc data-ready interrupt on INT1
- Write CTRL1_XL = 60h// Acc = 417 Hz (High-Performance mode)
I never see any bits set in STATUS_REG from this or an INT1 signal of any kind
What can I possibly be doing wrong here? I've tried much more complex stuff than this configuring the filter paths and all kinds of things... I never see the data ready..
