Hello, I am using #mpc5744p board.
I want to realize the function of CAN communication and LIN communication.
I completed the CAN communication part in the MBDT toolkit, called program A, but because there is no LIN module in the toolkit, I copied the S32DS example program to complete LIN communication in S32DS, called program B. And I successfully imported the program A generated by MBDT into S32DS. But I'm having trouble putting LIN program B into auto-generated program A.
With some effort (mainly adding LINmodule and changing the auto-generated DEBUG_CAN_LIN.c), I was able to get LINFlexD_1 initialized. However, when communicating with LIN, I will encounter problems here.
“LINFlexD_1.LINCR2.B.HTRQ = 1; /* Request header transmission */”
I have attached my simulink program and S32DS project. I have spent a lot of efforts but still have not solved the problem, please help me.Thanks a lot.