Hello,
Working on getting loopback working with a test box on the FlexCAN on the MPC5645S. CANA_MCR & CANB_MCR have FRZ & HALT fields. Does HALT have to be negated before a transmit or receive can happen?
Also, If you could point me to some example code that would be greatly appreciated!
Thanks,
Mark
Hi,
HALT bit has to be negated before you want to transmit or receive. FRZ bit can be 0 or 1, it does not matter.
Unfortunately, we do not have example for MPC5645S, but look at this app note. There is basic CAN configuration for another MPCs, but this configuration is usable with little changes for MPC5645S.
http://cache.nxp.com/files/32bit/doc/app_note/AN2865.pdf?fsrch=1&sr=1&pageNum=1
You can also download source codes from the app note:
MPC5500 and MPC5600 Simple Cookbook Code
If you have any other question, please feel free to write me back.
Regards,
Martin