Hi,
I have a self-made board with a LPC1768 @ 16 MHz and CAN here.
I started the project by using the provided LPC1769 (LPCOpen) examples.
I changed the XTal frequency (named OscRateIn) in board.c in the example code from 12MHz to 16MHz.
While testing with the CAN example inside I get the more transmission errors the higher the CAN Baudrate goes.
At 500kbit it is not usable at all.
It seems that changing only the OscRateIn is not all that I have to change.
Is there some way to fix this in software, or do I better use the example default osc frequency of 12 MHz
BR
Marc
Hi Marc Wetzel,
After you modify the board.c, do you build the lpc_board_nxp_lpcpresso_1769 at first, then build the periph_can?
If the lib file is modified, it need to build it at first.
After you build the lib and the periph project, then debug your board, the function Chip_CAN_SetBitRate.
Tell me the CANPclk , TSEG1, TSEG2 and BRP, I will calculate it.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------