cancel
Showing results for 
Search instead for 
Did you mean: 

Problem With LINFLEX1 Interrupt

nooshin_1382
Associate II
Posted on August 25, 2015 at 09:44

Hi

In my system i set the LINFLEX1 For my Lin Connections I set this in Master Mode i send and recive correctlly the slave response but i don't have any interrupt on Vector99 what is the problem on SPCstudio ??

Thanks For Help

Best Regards

Nazerian Vanima
4 REPLIES 4
Erwan YVIN
ST Employee
Posted on August 25, 2015 at 15:05

Hello Vanima ,

Did you set this following register during configuration mode ?

linflexp->LINIER.R = SPC5_LINIER_DTIE | SPC5_LINIER_DRIE |
SPC5_LINIER_BOIE | SPC5_LINIER_FEIE |
SPC5_LINIER_SZIE; 
/* Interrupts enabled. */

if you do not use UART / LINFLEX1 .. you should unplug from your SPC5Studio configuration. Best regards Erwan
nooshin_1382
Associate II
Posted on August 26, 2015 at 09:22

Hi Erwan

Thanks For Your Response

My Problem is not solved , i enabled these before but have no response in interrupt.

I have a slave sensor when i send a wake up id for sensor the sensor recive the data successfully when i want to recive a data from slave node i put the id on bus (Refer to ReciveData in my code on attachment ) i recive the response , i check the data on UDE Debugger it is correct but i have not any interrupt .

i send my code on attachment if code have any problem tell me about .

thanks so much.

Best Regards

Nazerian Vanima

________________

Attachments :

main.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qa40&d=%2Fa%2F0X0000000bpB%2FuqvrFL19z7jj1mSmc4s7t_9f7BG74GiyzRzsosXnO7g&asPdf=false
Erwan YVIN
ST Employee
Posted on August 28, 2015 at 11:29

Hello Vanima ,

I have forwarded your point to your LINFLEX Experts in AUTOSAR Team.

             Best Regards

                        Erwan

Erwan YVIN
ST Employee
Posted on August 28, 2015 at 15:40

Hello Vanima ,

Your LINFLEX configuration seems to be good and the timeout is disable.

Could you check your CPR configuration ?

The INTC_CPR masks any peripheral or software configurable interrupt request set at the same or lower priority as the current value of the INTC_CPR[PRI] field from generating an interrupt request to the processor.

Best regards

                              Erwan