Skip to main content
Marco Perciavalle
Associate III
March 7, 2017
Question

FlexCAN SPC563M-DISP Test application

  • March 7, 2017
  • 1 reply
  • 665 views
Posted on March 07, 2017 at 18:57

Hi,

I've tested 'SPC563Mxx_RLA CAN Test Application for Discovery' avaible on SPCStudio 5.0.0. This application uses Can loopback to send to itself and receive CAN messages. How can I edit the code in order to create a communication between two same boards? Is CAN_A or CAN_C terminals enabled for this purpose or should I enable them manually in pinMap Wizard? To which teminal is associated CAND1 class? I've tried to write a code but it doesn't work.

Thanks a lot.

Best regards.

MP.

#can #spc563m
This topic has been closed for replies.

1 reply

Erwan YVIN
ST Technical Moderator
March 8, 2017
Posted on March 08, 2017 at 17:16

Hello Marco ,

yes , the Pinmap should be set correctly

use the pinmap wizard.

CAND1 is Flexcan0

/** @brief CAN1 driver identifier.*/
#if SPC5_CAN_USE_FLEXCAN0 || defined(__DOXYGEN__)
CANDriver CAND1;
#endif
/** @brief CAN2 driver identifier.*/
#if SPC5_CAN_USE_FLEXCAN1 || defined(__DOXYGEN__)
CANDriver CAND2;
#endif�?�?�?�?�?�?�?�?�?

you should disable Loopback between 2 boards and well configured TxRx

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.