I would like the free running timer of FlexCAN3 in my MIMXRT1062CVJ5A to be clocked by something other than the baud rate.
CTRL2[TIMER_SRC] indicates that this should be possible, but leaves out all info on how to achieve it.
From other posts it has been suggested that it might be the PIT_TIMER0 that is the mysterious device-specific source of the external time tick. But I haven't had any success at getting the free running timer to tick at all except by the baud rate. Not even when I had all PIT timers running.
I also tried to get the PIT_TRIGGER0 out on pin GPIO_AD_B0_04 by selecting ALT6 in SW_MUX_CTL_PAD_GPIO_AD_B0_04, but no luck there either. The pin stays constantly high. Related?
Has anyone had any luck at getting the timer to spin by something other the baud rate? And if so how?
Hi David,
Unfortunately, we don't have any examples that do this. I apologize for the inconvenience that this might cause you. There are a couple of things to keep in mind when you want to clock the free-running timer by an external tick. For example:
Regards,
Victor
Hi!
Hello David,
You are right, we do mention that there should be more information but we don't provide it. I'm currently checking this internally. I will give you an update as soon as possible.
Regards,
Victor
Hello David,
I just got the response from the IP owner that the FlexCAN3 interface actually doesn't support this feature. The timestamp is only based on the free-running timer and it cannot be supplied by an external time tick. The reference manual will be updated to remove this information. I apologize for the inconvenience that this might cause you.
Regards,
Victor
Oops... Measured the wrong pin. The PIT_TRIGGER0 out on pin GPIO_AD_B0_04 works like a charm. As well as chaining the PIT timers, so nothing wrong with my PIT timers.