Hi xiaohui,
According to your description, it rather looks like some hardware issue or problem with CAN timing.
Do you really want to communicate at 100kbit/s? The standard is 125kbit/s.
The generated PE code configure bit rate with a big error.
BTW: I would like to recommend use external oscillator as the clock source for MSCAN module instead of bus clock (your case).
When I select 4MHz external oscillator as the clock source, the PE do not offer me any configuration for 100kbit/s bitrate.
The CAN PHY slew rate influences propagation delay and this way also ideal CAN bitrate configuration.
For such low bitrates, I would like to recommend for example CAN Physical Layer slew rate 6 (CPCR_SLR2-0 = 0b110).
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!
-----------------------------------------------------------------------------------------------------------------------