你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

关于LSM6DSL FIFO 读数数据的错位问题

[复制链接]
yan_zhang 提问时间:2025-2-20 10:29 / 未解决

we use one LSM6DSL sensor to read 3 axis acc FIFO data each second, but after some times, the FIFO out data become misaligned.

the sensor setting is below:

  • XL_ODR_26HZ
  • Gyro disabled.
  • FIFO ODR = 26Hz
  • FIFO threshold (water mark) = 128
  • No decimation
  • BDU Block Update enabled
  • FIFO Is in continuous modewe have a timer to trigger to read FIFO data by Zephyr I2C(frequency: 100000bits/s) each second, before data reading, we check the numbers of FIFO by checking FIFO_STATUS1 and FIFO_STATUS2 register, then we read a multiple of 3 axis sets each time, for example if the FIFO data number has 78, we will read all FIFO data one time, if the number is 76 or 77, we only read 75 data one time. it can make sure reading data is complete 3-axis data. firstly, the reading data is the right like as (X_ACC, Y_ACC, Z_ACC). but after some time (the time is not fixed) the data will become (Y_ACC, Z_ACC, X_ACC). we don't know how to fix this issue. please help us.
收藏 评论2 发布时间:2025-2-20 10:29

举报

2个回答
st_yujie2510 回答时间:4 天前

Please check if FIFO was full, the reading process should avoid the situation where the FIFO is full. If the FIFO is full, it is recommended to empty the FIFO completely. Alternatively, set the FIFO_CTRL4.STOP_ON_FTH bit to control the FIFO size in multiples of 6 to avoid data misalignment.

yan_zhang 回答时间:3 天前

谢谢回复。

目前我们采用的是每秒钟周期读一次FIFO的方式,从当前的采样频率26Hz,I2C的读取速度为100kbps,计算下来,不会达到FIFO FUILL,在我们的测试中也没有出现过FIFO FULL。

host平台是nrf52840,这一套流程跑在nordic nRF5 SDK上采用以上方式都能正常运行。

现在运行在nordic NCS2.6.1的SDK上,不确定是否与OS不同有关系,在静止不动,大约几小时或十几个小时后出现错位,pattern读出来也不对。

目前找不到出现问题的root cause,请支持。谢谢~

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版