ST意法半导体
直播中

孙琪

7年用户 168经验值
私信 关注
[问答]

HTS221通过SPI,软重启后无法写入寄存器

嗨,我正在使用带有STM32F205的HTS221。通信通道是SPI。我发现当我重新启动处理器而没有重启电源时,一旦处理器重新启动并运行,它就无法写入任何HTS221的控制寄存器,因此我无法将其置于活动模式。我在~1MHz运行SPI总线。


任何建议/想法将不胜感激!

谢谢,
道格
#hts221

以上来自于谷歌翻译


以下为原文




Hi, I'm using the HTS221 with an STM32F205. The communication channel is SPI. I'm finding that when I reboot my processor without cycling power, once the processor is back up and running it is unable to write to any of the HTS221's control registers so I am unable to put it in active mode. I am running the SPI bus at ~1MHz.


Any advice/ideas would be greatly appreciated!

Thanks,
Doug  
#hts221

回帖(1)

袁声瑜

2019-6-10 15:44:01
你好道格,
 
 
 从你提供的信息中,我唯一能想到的是这个原因
 您描述的行为是重新启动落在SPI tran的中间
 saction,让事务挂起,传感器接口状态机wai
 完成之前开始的交易。
 一般来说,我建议每次都采取措施重置传感器
 你重新启动micro。如果您在传感器复位后仍然遇到同样的问题让我
 知道。
 
 问候,
 阿达尔韦托

以上来自于谷歌翻译


以下为原文





Hello Doug,


from the information you provided, the only thing I can think of as a cause of the
behavior that you describe is the reboot falling right in the middle of an SPI tran
saction, leaving the transaction pending and the sensor interface state machine wai
ting for completion of the previously started transaction.
In general what I would recommend to take actions to reset the sensor every time
you reboot the micro. If you stilll have the same problem after sensor reset let me  
know.

Regards,
Adalberto
举报

更多回帖

发帖
×
20
完善资料,
赚取积分