Skip to main content
dominik2
Associate II
October 21, 2015
Question

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

  • October 21, 2015
  • 2 replies
  • 834 views
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

    This topic has been closed for replies.

    2 replies

    dominik2
    dominik2Author
    Associate II
    October 22, 2015
    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
    October 22, 2015
    Posted on October 22, 2015 at 11:31

    Hello Dominik ,

    Good to see that you have solved the issue ;)

      Best Regards

                   Erwan