cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure LIN Identifier filter for SPC560B54L5 discovery board .

rpoon
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

5 REPLIES 5
rpoon
Associate II

@Erwan YVIN​ 

can you please help me out with above thread.

Thank you

Erwan YVIN
ST Employee

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

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
Associate II

@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 .

Hello @Erwan YVIN​ 

would you have any information on this thread?