How to Recover from CAN BUS OFF of FlexCAN imx6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Recover from CAN BUS OFF of FlexCAN imx6

2,154 Views
subbaiah_patiba
Contributor II

Hi,

we are working imx6 processors CAN Development using FlexCan.

We are facing issue of CAN BUS OFF, while device not connected to CAN BUS and transmitting CAN Frames.

 

To recovery form BUS OFF, can we get any steps or API to reset CAN Controller... Manually.??

This is critical for us, any quick help appreciated.

@peters

0 Kudos
Reply
4 Replies

2,124 Views
aksh9354
Contributor I

hello subbaiah did you find the solution regarding the same I am also facing the same thing while communicating can bus is going in off state

0 Kudos
Reply

2,118 Views
subbaiah_patiba
Contributor II

Hi Akash,

We didn't find any solution yet.

But as we know, we need to do soft reset of Flexcan controller, to recover from BUS OFF. We don't have any interface now readily to do the same.

In Flexcan driver, we have "can_restart()" interface to reset controller, but we don't have IP layer interface to access the same.

Now, we are in way to find out, how to link "ip link type can restart" to "flexcan_restart()" interface.

if we found this, we are in Good position to recover from CAN BUS OFF.

Thanks

SUbbu

2,147 Views
igorpadykov
NXP Employee
NXP Employee

Hi subbaiah_patiba

 

reason may be that can transceiver STBY signal is in active level, keeping in low power mode the FlexCAN module.

Usually that STBY signal is connected to i.MX6 some gpio, so one can set it to appropriate level.

 

Best regards
igor

0 Kudos
Reply

2,142 Views
subbaiah_patiba
Contributor II

Thanks Igor for quick reply.

I need mechanism to recover from CAN BUS OFF, while Device is connected to BUS.

We observe CAN Bus OFF, during device communication with BUS, due to Transmit errors. So we need a mechanism to recover like RESET Controller etc.

Please provide any information on this, any patch available in Flex-can drivers or any existing API to resolve the same.

 

Thanks

Subbu

0 Kudos
Reply