cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving CAN MSG in SPC560p

DNewm.1
Associate III

Hello

I'm working on SPC560P and tried to receive CAN message as sample in examples discovery kits in spc5studio but still it's not working. I wrote below code:

void cfg0_Fifo_Rx(CANDriver *canp, CANRxFrame crfp){

if(crfp.ID == 0x811){

pal_lld_togglepad(PORT_A, Led_D5);

}

}

Would you please help me out with this.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

Do you go with debugger in the function of it is a filter issue ?

void cfg0_Fifo_Rx(CANDriver *canp, CANRxFrame crfp)

  Best Regards

                Erwan

View solution in original post

3 REPLIES 3
Erwan YVIN
ST Employee

Hello ,

Do you go with debugger in the function of it is a filter issue ?

void cfg0_Fifo_Rx(CANDriver *canp, CANRxFrame crfp)

  Best Regards

                Erwan

Hello Erwan

I set the filter and it's ok now. 

Thanks.

Hello DNewm,

Could you please tell, how did you set the filter.

Thank you