Testing MCAL CAN module

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Testing MCAL CAN module

跳至解决方案
1,621 次查看
talha_uyar
Contributor III

Hi,

I am trying to understand the CAN module of MCAL drivers. I am using S32DS on S32K118 EVB. In the "Integration Manual" for CAN driver it is stated that "There have to be another one CAN node present on the CAN bus in order to get the CAN bus synchronized."

My question is about using the CAN driver with only the S32K118 EVB. Can I test the CAN driver without connecting another CAN node to the CAN bus of EVB? Will the processor raise an error during Run-Time if there are no CAN nodes connected?

标签 (1)
0 项奖励
回复
1 解答
1,518 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello  Muhammet Uyar,

User can test the CAN driver without connecting another CAN node to the CAN bus of EVB. But the send process will never completed because the CAN bus cannot be synchronized. And the next time user call the Can_write with the same HTH it will return CAN_BUSY. It will not raise an error during Run-Time if there are no CAN nodes connected.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,519 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello  Muhammet Uyar,

User can test the CAN driver without connecting another CAN node to the CAN bus of EVB. But the send process will never completed because the CAN bus cannot be synchronized. And the next time user call the Can_write with the same HTH it will return CAN_BUSY. It will not raise an error during Run-Time if there are no CAN nodes connected.

0 项奖励
回复
1,518 次查看
talha_uyar
Contributor III

Will the HTH still return CAN_BUSY in the LoopBack Mode? If not, can't I use the LoopBack Mode for basic testing.

0 项奖励
回复
1,518 次查看
hungnguyenphi
NXP Employee
NXP Employee

No, it will not return CAN_BUSY in the LoopBack mode and you can use it for basic testing.

0 项奖励
回复
1,518 次查看
talha_uyar
Contributor III

Thanks a lot for the response.

0 项奖励
回复