TI中文支持网
TI专业的中文技术问题搜集分享网站

TCAN4550-Q1: 发送数据到总线,数次后异常停止

Part Number:TCAN4550-Q1

canfd模式可以与其他can通信,但会突然异常终止,nINT灯常亮,有时打印0x820寄存器值为0x100000,有时为0x100088;0xC寄存器的值在未出现异常时为0x8,出现异常时有时为0x900000c,有时为0xb00000c,请问分别都是什么原因

Amy Luo:

您好,

为更加有效地解决您的问题,我已将您的问题发布在E2E英文技术论坛上,请更了解这款芯片的TI资深工程师为您解答,一旦得到回复后我会立即回复给您。帖子链接如下,您也可以关注帖子,以方便查看或追问后续疑问。

英文论坛对应子论坛链接:

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1221584/tcan4550-q1-sending-data-to-the-bus-stopping-abnormally-after-several-attempts

,

Amy Luo:

您好,E2E工程师已回复,请尝试他的方法并反馈测试结果:

根据您的寄存器描述,设备报告SPI error,并处于写入FIFO溢出状态。write_fifo_overflow标志通常是传输比SPI帧的LENGTH部分声明的数据更多的数据的结果(参见数据表的图8-17)。这也可能是由于SPI上的一个新命令在前一个命令可以被完全处理之前进入引起的。在这种情况下,重复先前的SPI命令应允许设备正确处理所有命令。如果这确实是根本原因,那么在SPI帧之间引入一些人为延迟以防止这种情况发生可能是件好事。在这两种情况下,当nINT引脚指示已设置SPIERR标志时,应通过写入中断寄存器来清除该标志,并且应重复先前的SPI命令以确保丢失操作或数据。

Based on your register description, the device is reporting a SPI error with a Write FIFO overflow status. The write_fifo_overflow flag is typically the result of transmitting more data than was declared in the LENGTH portion of the SPI frame (see figure 8-17 of the datasheet). This could also be caused by a new command coming in on SPI before the previous command could be processed fully. In this case, repeating the previous SPI command should allow the device to properly process all commands. It may be good to introduce some artificial delay between SPI frames to prevent this from happening if this is indeed the root cause.

In both cases when the nINT pin indicates that the SPIERR flag is set, the flag should be cleared by writing to the interrupt register and the previous SPI command should be repeated to ensure on actions or data are missed.

Let me know what you are able to find out regarding this information when applied to the current system. 

,

wow:

谢谢!最终发现问题是软复位部分没有进行配置。还有一个问题是有时候会报错:hard_xmit called while tx busy

第二个问题是,r23接口为何没有接上拉电阻,并测用蜂鸣器测量nINT与r23之间并不响

,

Amy Luo:

好的,感谢您的反馈!第一个问题我会提交给E2E工程师,第二个问题中r23接口是指哪里?您可以详细说明吗?

,

Amy Luo:

Amy Luo 说:第二个问题中r23接口是指哪里?您可以详细说明吗?

您好,您的问题解决了没有,如果还没有请反馈以上信息

,

wow:

我知道问题了,我看错手册了,sorry

,

Amy Luo:

好的,感谢您的反馈!

赞(0)
未经允许不得转载:TI中文支持网 » TCAN4550-Q1: 发送数据到总线,数次后异常停止
分享到: 更多 (0)