cancel
Showing results for 
Search instead for 
Did you mean: 

Wakeup Master Request LINFLEX_0.LINCR2.B.WURQ = 1 is not working correctly

dominik2
Associate II
Posted on October 21, 2015 at 18:21

Hi all,

I'm using the SPC560B ecu as a LIN slave controller.

Now I have the problem to wake up a slave master.

Therefore I only set LINFLEX_0.LINCR2.B.WURQ = 1.

This works for a couple of times but after a few wake ups not any longer.

Does anybody know if I have to do more configurations in the register than that

or do I have to respect some side constraints?

Many thanks for help and kind regards,

Dominik

2 REPLIES 2
dominik2
Associate II
Posted on October 22, 2015 at 10:32

Hello all,

I solved my problem. The matter of fact that the wake up request was not successful is, that there has been an unsuitable byte in the data0 register.

With following code I'm successfully able to wake up a master:

void LINI_RequestMasterWakeUp(void)

{

    LINFLEX_0.BIDR.B.DIR = 1;

    LINFLEX_0.BDRL.B.DATA0 = 0x00;

    LINFLEX_0.BIDR.B.DFL = 0;

    LINFLEX_0.LINCR2.B.WURQ = 1;

}

Greetings,

Dominik

Erwan YVIN
ST Employee
Posted on October 22, 2015 at 11:31

Hello Dominik ,

Good to see that you have solved the issue 😉

  Best Regards

               Erwan