In SDK8.2, by setting the busoff generation condition once, two consecutive busoff interrupts are generated. The time interval between two consecutive busoff interrupts is about 30ms. For the first time, the BO bit, EP bit, EW bit and PED bit of MCAN_IR register are set to 1. The second time, only the BO bit of MCAN_IR register is set to 1.
This will cause the ongoing busoff recovery strategy to be interrupted when the busoff is generated for the second time, so that a new busoff recovery strategy will be implemented again. Because of this, the time of the busoff fast recovery strategy in the application program has been extended, resulting in that the fast recovery time does not meet the requirements of the vehicle manufacturer's specifications.
Therefore, I want to ask if the busoff generation condition is valid once in SDK8.2, and whether the busoff interrupt can be generated once. If not, what measures can be taken to avoid the problem.
In addition, whether it can be considered that only the recovery strategy of the first busoff can be processed, and the second busoff interrupt generated continuously can be discarded without any processing.
Thank you very much.