Can tx failed as HTH is always BUSY

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

Can tx failed as HTH is always BUSY

562 次查看
priyankanh25
Contributor I

Hi,

I have an issue from CAN DRIVER which results in losing the Pdu transmission permanently in the ignition cycle.

 

Below is the rootcause analysis:

I am using polling method to read the tx confirmation and it is called in 1ms OS task.

Sometimes, due to issues with runtime budget issues in os tasks, the can_write() gets delayed. And the tx confirmation is lost.

Next time ,Whenever I call the transmit function, the HTH is found to be always CAN_BUSY and the Pdu will not transmitted until I make a SW reset.

After further investigation, I found that HTH will become free only upon getting the successful tx confirmation.

So, the question is

 1.Is there an option to handle the situation where tx confirmation lost due to runtime issue

 2. How fast the tx confirmation should be polled, before it is lost?

Thanks

 

 

 

 

 

0 项奖励
1 回复

554 次查看
nxf45548
NXP Employee
NXP Employee

Hi @priyankanh25 
Thank you for contacting NXP technical support. 
To provide you better support, can you please let us know the part number that you are using? 
Regards, 
Susi 

0 项奖励