MPC5746C LIN Master error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5746C LIN Master error

Jump to solution
1,073 Views
hongchuan_li
Contributor I

Hi ,

I am having an issue setting up the LIN Master.(MPC5746C)

I tried LINFlexD_0 as LIN Master.

It's still not working and don't know what else to try.

It gets stuck at while(0 == (LINFlexD_0->LINSR & LINFlexD_LINSR_DTF_MASK)).

register state:

LINFlexD_0->LINSR  0x3000

LINFlexD_0->LINESR0xa000

Other question:

How to pull up SIUL2 :GPIO[114] ?

Hopefully somebody knows whats going on.

Thanks.

All code:  the file of Lin_master.c

0 Kudos
1 Solution
995 Views
ankur_vcns_apps
NXP Employee
NXP Employee

Hi,

Are you using S32DS as the IDE. If yes, can you have a quick look at the LIN example available in the S32DS. I have also attached the c file that comes in the example code. Please confirm if you still face the issue after using the attached file.

Regards,

Ankur

View solution in original post

3 Replies
996 Views
ankur_vcns_apps
NXP Employee
NXP Employee

Hi,

Are you using S32DS as the IDE. If yes, can you have a quick look at the LIN example available in the S32DS. I have also attached the c file that comes in the example code. Please confirm if you still face the issue after using the attached file.

Regards,

Ankur

995 Views
hongchuan_li
Contributor I

Thank you for your answer,because of coding error,this issue  has occurred. Now I have modify my code and the issue  was solved. Thank you very much one more time。

0 Kudos
995 Views
ankur_vcns_apps
NXP Employee
NXP Employee

Thanks for confirming. 

Regards,

Ankur

0 Kudos