I'm using the MPC5744P now. I use GHS MULTI IDE and P&E MULTILINK and EVB is KIT33908MBEVBE+KITMPC5744DBEVM.
But the CAN0 ( FlexCAN module) can not work well. And the program is always suspending in the below line.
while ( (CAN_0.IFLAG1.B.BUF31TO8I & 1) == 0) { } // wait until the tx is completed.
Could someone give me advice about the CAN0, please? It would be better if you can share me the example code of FlexCAN.
Thanks a lot.
Original Attachment has been moved to: Example-MPC5744P-FlexCAN-simpleTXRX-v1_0-GHS614.zip
Hi,
this example was written for and tested on the MPC5744P EVB and it works well on this EVB.
With your demo board this example cannot work as the SBC CAN transceiver is used on the motherboard (KIT33908MBEVBE). The SBC chip must be initialized and CAN transceiver enabled.
You can refer to the demo code for this board; https://www.nxp.com/webapp/Download?colCode=MPC5744P-MC33907-MC33908-DEMO. It does the SCB init as well as simple CAN transmit.
BR, Petr