The CAN module cannot trigger receiving and sending interrupts with MCAL concfg

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

The CAN module cannot trigger receiving and sending interrupts with MCAL concfg

955 次查看
ananan
Contributor III

Eb Tresos configures the CAN module. CAN Rx Processing Type and CAN Tx Processing Type* are interrupt modes. Can_Write() is used to send data, but no interrupt is triggered,The specific configuration and code are shown in the figure

init

ananan_0-1631798579885.png

send

ananan_1-1631798663512.png

For the first time, eReturnValue returns OK. For the second time, eReturnValue returns PENDING. The code inside Can_Write says MB is not empty.

ananan_2-1631798878623.png

 

0 项奖励
回复
1 回复

939 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hi @ananan ,

 

Could you please check if you  have connected your board with other CAN Node (which can send back the ACK for this frame). If the Peripheral does not receive the ACK in the bus, so the TX interrupt will not be triggered.

 

Best regards,

Hung

0 项奖励
回复