Hi Max,
I didn’t test it on HW.
You are right, the external crystal on board is just 4MHz.
I am afraid that 1Mbit/s bit rate is not possible to achieve with 4MHz clock source – It is out of CAN standard compliant bit time segment settings.
You should use at least 8MHz clock source for 1Mbit CAN bit rate.
So, you may use bus clock>=8MHz as CAN clock source for debugging purpose. However, I would like to strongly recommend use the external crystal with frequency 8MHz or more for real production and take this clock as CAN module clock source.
The PLL cannot fulfill CAN standard requirements for the clock source.
For example: for 8MHz clock source and described settings you need clock source with tolerance better than 0.48% …
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------