Cypress技术william hill官网
直播中

李蛹

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

如何调试I2C和RTC

我有一个基本的I2C交易与温度传感器工作。我禁用了所有的I2Cases,并从示例中引入了RTC计数器,这也是有效的。但是当我重新启用I2C调用时,它看起来像是在等待最后一个字节的传输(I2C。C的第951行)。我担心其中一个中断例程会导致I2C事务被搞乱,但我不知道该在哪里查找如何调试。我附上了我的项目。
我错过了一些基本的关于这些模块如何相互作用?
谢谢,
安得烈
timeMeker-0.0.BultLe01.Zip
1.1兆字节

以上来自于百度翻译


     以下为原文
  I had a basic I2C transaction with a temperature sensor working.  I disabled all the I2C stuff and brought in the RTC counter from the example, and that was working as well.  But when I re-enabled the I2C calls, it looks like it's hanging forever waiting for the last byte to be transferred (line 951 of I2C.c).  I am worried that one of the interrupt routines is causing the I2C transaction to be messed up, but I am not sure where to look to find out how, or to debug.  I've attached my project.  
    Am I missing something fundamental about how these modules interact with one another?
    Thanks,
    Andrew


回帖(2)

马昱

2019-3-18 15:44:47
嗨,安得烈,
你能在最小的归档之后重新安装这个项目吗?
我无法在我的终端上打开这个项目。
您可以通过右键单击工作区并选择“归档工作区”来“最小化”存档。
当做,
DASG

以上来自于百度翻译


     以下为原文
  Hi Andrew,
     
    Can you please reattach the project after minimal archiving it?
    I am unable to open the project at my end.
    You can 'minimal archive' it by right-clicking the workspace and and choose 'Archive Workspace'.
     
    Regards,
    dasg
举报

李蛹

2019-3-18 16:01:12
对不起,我只能猜出口什么。这可能会更好。
TimeMeker-0.0.CyWrk.CaseV01.Zip
373.6 K

以上来自于百度翻译


     以下为原文
  Sorry, I just had to guess what to export.  This might work better.


举报

更多回帖

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