Reset CAN Bus Status

Hi,

is there a possibility to reset the CAN BusStatus flag using CAN lib? If I get BUSOFF status i want to reset it. I tried the function Imx7Can_SetConfigInt(hCan, L"BusStatus", busStatus, StoreVolatile) with busStatus 0, 1 and 2. But this, as well as a reinit, doesn’t work. I always have to power off the imx7 modul.

Thanks

Very good. It works.

After BUSOFF and Reinit I can send and receive again.

Thanks a lot.

@kuzco,
Could you please try preliminary release library.
We have corrected proper BusStatus return and BusStatus is a read-only parameter. We have implemented CAN reset inside Can_Init function. Let us know, is that solves the issue?