AnsweredAssumed Answered

LPC5401x - SDK 2.5.0 - MCAN Baud Rate

Question asked by Carl Matthews on Jan 31, 2019
Latest reply on Feb 5, 2019 by jeremyzhou

Hi,

 

Had lots of CAN problems and it turns out one of the issues is the MCAN_Init function doesn't calculate the baud rate correctly if the CANx_CLK_FREQ is not 16Mhz (which is the frequency the demo uses).

 

The issue is the hardcoded NTSEG1 and NTSEG2 in the MCAN_SetBaudRate function call from the init function.

 

Thanks,

Outcomes