Skip to main content
rpoon
Associate II
December 18, 2019
Solved

How to configure LIN Identifier filter for SPC560B54L5 discovery board .

  • December 18, 2019
  • 5 replies
  • 2087 views

Hello,

I am using LIN4 as slave , but I am not able to activate the identifier filter . Actually other than lin driver 0(LD0) , lin identifier filter is not getting activated.

ldp->linflexlp->IFER.R = (uint16_t) (ifer | (((uint32_t)1U << 1))); /* Enable #Filter */

Program is getting stuck in above statement in lin_lld.c->spc5_linflex_set_filter function.

as per the reference manual,

To configure an identifier filter the filter must first be activated by programming IFER[FACT] = 1.

but where exactly we have to make the configuration for activating the filter.

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello rpoon ,

    Sorry for my late answer.

    your program is stuck in spc5_linflex_set_filter.

    Is it a crash or a data abort,

    Could you check your LR and R14 in assembler mode ?

    Best Regards

    Erwan

    5 replies

    rpoon
    rpoonAuthor
    Associate II
    January 24, 2020

    @Erwan YVIN​ 

    can you please help me out with above thread.

    Thank you

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    January 28, 2020

    Hello rpoon ,

    Sorry for my late answer.

    your program is stuck in spc5_linflex_set_filter.

    Is it a crash or a data abort,

    Could you check your LR and R14 in assembler mode ?

    Best Regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
    rpoon
    rpoonAuthor
    Associate II
    January 29, 2020

    Hello Erwan,

    I am configuring LIN driver 4 as slave LIN driver 5 as master .

    1. R14 is always 0x00000000
    2. LR value at time of program stuck in set filter is : 0x00001C9E

    I am facing this issue for all LIN channel except LIN driver 0.

    Thank You

    rpoon
    rpoonAuthor
    Associate II
    January 31, 2020

    @Erwan YVIN​ 

    I am attaching the application code, kindly help me out to identifying whether it is driver issue or I am not initializing properly .

    rpoon
    rpoonAuthor
    Associate II
    February 19, 2020

    Hello @Erwan YVIN​ 

    would you have any information on this thread?