2015-08-25 12:44 AM
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 Vanima2015-08-25 06:05 AM
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
2015-08-26 12:22 AM
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=false2015-08-28 02:29 AM
2015-08-28 06:40 AM
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