Skip to main content
Associate III
September 16, 2023
Solved

Receiving CAN MSG in SPC560p

  • September 16, 2023
  • 1 reply
  • 2610 views

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.

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

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

1 reply

Erwan YVIN
Erwan YVINBest answer
ST Employee
September 19, 2023

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

DNewm.1Author
Associate III
September 25, 2023

Hello Erwan

I set the filter and it's ok now. 

Thanks.

Yali Mobilities
Associate III
October 10, 2023

Hello DNewm,

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

Thank you