cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSO FSM register issues

TCont.2
Associate

Hello,

I am trying to set up an FSM on the LSM6DSO, but I have been struggling for several weeks. Upon further investigating the register values, I believe that I might have accidentally written to a memory location that changed something about the FSMs permanently. Before even writing to any registers, the value of FSM_STATUS_A IS 0x24 and the value of FSM_STATUS_B is 0x04. Those registers stay that way, regardless of interrupt status.

Only this feature seems to have been affected, as I can still read/write to the accel and gyro, and embedded functions such as significant motion and tilt also work.

I know people will be curious about what I am currently writing to registers, so here it is. Right now I am trying to configure the sample FSM that generates an interrupt every N samples (FSM Guide pg 53/ 10.1 Toggle)

  1. 0x00 to CTRL1_XL
  2. 0x00 to CTRL2_G
  3. 0x80 to FUNC_CFG_ACCESS
  4. 0x00 to EMB_FUNC_EN_A
  5. 0x01 to EMB_FUNC_EN_B
  6. 0x53 to EMB_FUNC_ODR_CFG_B
  7. 0x01 to FSM_ENABLE_A
  8. 0x00 to FSM_ENABLE_B
  9. 0x60 to PAGE_RW
  10. 0x11 to PAGE_SEL
  11. 0x7A to PAGE_SEL
  12. 0x00 to PAGE_VALUE
  13. 0x00 to PAGE_VALUE
  14. 0x01 to PAGE_VALUE
  15. 0x02 to PAGE_VALUE
  16. 0x00 to PAGE_VALUE
  17. 0x04 to PAGE_VALUE
  18. 0x41 to PAGE_SEL
  19. 0x00 to PAGE_ADDRESS
  20. 0x01 to PAGE_VALUE
  21. 0x00 to PAGE_VALUE
  22. 0x0A to PAGE_VALUE
  23. 0x00 to PAGE_VALUE
  24. 0x00 to PAGE_VALUE
  25. 0x00 to PAGE_VALUE
  26. 0x00 to PAGE_VALUE
  27. 0xFF to PAGE_VALUE
  28. 0x03 to PAGE_VALUE
  29. 0x22 to PAGE_VALUE
  30. 0x01 to PAGE_SEL
  31. 0x80 to PAGE_RW
  32. 0x00 to FUNC_CFG_ACCESS
  33. 0x32 to CTRL1_XL
  34. 0x3C to CTRL2_G

I would appreciate any help!

0 REPLIES 0