Joaquim Martinez

MK22 CAN Bus off automatic recovery

Discussion created by Joaquim Martinez on Feb 23, 2017
Latest reply on Mar 13, 2017 by Kerry Zhou

Hi everyone,


I'm developing a CAN bus app with MK22FX512VLQ12 Kinetis microcontroller with KDS and Processor Expert. I want to handle manually the "Bus off recovery mode" when I detect the "Bus Off" error in the bus. At page 1179, Register CAN0_CTRL1, bit 6 BOFFREC it specified that an automatic recovery request is available (enabled or disabled). My questions are:


1) If I assert this bit so as to enable the automatic recovery mode to, is there any way to detect that the Bus has been recovered successfully? If yes, how?

2) Is the SYNCH bit (CAN0_ESR1 register, page 1186) suitable to detect an automatic bus recovery?

3) And finally, must I reset any register or to do a soft reset of the CAN peripherical?


Thank you very much.