MBDT and MPC5744P :How can I add my own LIN program to my MBDT auto-generated program?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MBDT and MPC5744P :How can I add my own LIN program to my MBDT auto-generated program?

570 次查看
Shibo_Liu
Contributor I

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.

标记 (2)
0 项奖励
回复
0 回复数