Skip to main content
sjpatel19922
Associate II
July 31, 2017
Question

Not able to transmit or receive messages on CAN

  • July 31, 2017
  • 1 reply
  • 1190 views
Posted on July 31, 2017 at 22:00

Hi all,

I am trying to initialize the FlexCAN1 module on the

SPC570S40E1 micro. The CAN module looks like it is correctly initialized, but when I try totransmitusing one of the MB's, the CAN Txline shows no activity and remains in the default high state. Time Stamp and Code field of the MB is showing the correct updated values. An interrupt is generated as well. Any idea what may be causing this problem?

0690X00000607jNQAQ.png 0690X00000607mQQAQ.png

I have initialized the pins as follows:

void Initialize_CAN_Pins(void)
{
// FlexCAN Channel 1

// RX --> PA12
SIUL2.MSCR_MUX[513-512].B.SSS = PAL_SPC5_SSS(2);
// TX --> PA13
SIUL2.MSCR_IO[13].R = PAL_MODE_OUTPUT_ALTERNATE(2);

}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

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

1 reply

Giuseppe DI-GIORE
ST Employee
August 4, 2017
Posted on August 04, 2017 at 10:31

Hello,

are you using a SPC570S Discovery board ?

If yes, there are a couple of resistors to remove:

R11 and R12 (pull-up of CANH e CANL lines.

Regards,

Giuseppe

sjpatel19922
Associate II
August 4, 2017
Posted on August 04, 2017 at 15:33

No, I am not using that.