Can tx failed as HTH is always BUSY

cancel
Showing results for 
Search instead for 
Did you mean: 

Can tx failed as HTH is always BUSY

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

111 Views
nxf45548
NXP TechSupport
NXP TechSupport

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 Kudos