View Full Version : Unable to SET CCE bit of CAN register CCCR

May 29th, 2019, 10:25 PM

I am working on TC387 AURIX microcontroller.

During my CAN initialization, After setting my INIT bit to 1, when I try to set the CCE bit to 1, I am not able to do it.
After each setting each INIT and CCE bit to 1, I have a while loop which move forward only if respective bit is set to 1.
my INIT bit is able to set and my while loop code moves forward to set CCE bit, but is never able to move ahead of my CCE bit set while loop, i.e. my CCE bit is never getting set.
Is CCE bit write protected? If yes, what is the procedure to make it write accessible? Also Is there any other register that need to be set for CAN before setting CCCR register (INIT and CCE bit)?

Aug 30th, 2019, 12:49 AM
Hi Saurabhu13,
first you have to switch on the "synchronous clock source" of CLKSEL[i] in the MCR, before you can modify the contents of the CCCR[i].