使用CYT2B75芯片CANFD模块无法发送消息

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
__Lin
Level 2
Level 2
50 sign-ins 10 replies posted 25 sign-ins

你好,我使用SDL的example中的CANFD代码测试CYT2B75芯片CANFD模块,对部分代码进行了硬件适配修改,详见附件,配置为每秒发送一次CAN报文。

问题:消息发送失败,且电脑上位机无法接收到报文,Debug模式下,Tx buffer 一直不为空,返回CY_CANFD_BAD_PARAM,发送失败。

__Lin_0-1667285484668.png

可以帮忙测试下吗,是代码的问题还是其他问题?可能出现这种问题有可能是什么原因呢?

 

0 点赞
1 解答
Jimmy_L
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

你好,

我用SDL的sample code测试了一下,发现没有问题,buffer中数据也是对的

JimmyLiu_0-1667294287122.png

看了一下您的代码,应该也是参考sample code,只是CAN的配置不同。您可以先检查一下您的硬件接口和软件有没有对应上。

在原帖中查看解决方案

0 点赞
2 回复数
Jimmy_L
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

你好,

我用SDL的sample code测试了一下,发现没有问题,buffer中数据也是对的

JimmyLiu_0-1667294287122.png

看了一下您的代码,应该也是参考sample code,只是CAN的配置不同。您可以先检查一下您的硬件接口和软件有没有对应上。

0 点赞
__Lin
Level 2
Level 2
50 sign-ins 10 replies posted 25 sign-ins

谢谢,已测试成功,是硬件上存在问题

0 点赞