2017-03-07 09:57 AM
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 #spc563m2017-03-08 08:16 AM
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