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.
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
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
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
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