Skip to main content
Associate III
September 16, 2023
Solved

Receiving CAN MSG in SPC560p

  • September 16, 2023
  • 3 replies
  • 2644 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

3 replies

Erwan YVIN
Erwan YVINBest answer
ST Technical Moderator
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
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