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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

963件の閲覧回数
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 返信

947件の閲覧回数
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 件の賞賛
返信