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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

100 Views
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 Kudos
1 Reply

84 Views
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 Kudos