Skip to main content
wminx.1
Visitor II
December 11, 2020
Solved

SPC574S CAN communication failed。

  • December 11, 2020
  • 1 reply
  • 779 views

When I test CAN whether it can send data successfully。 I found it always ​failed. Now I use 100pin SPC574s. I have configured can tx PB0(18),PA15(17)pin. I test using SPC5Studio 6.00 version. please help me check my project. Thanks a lot.

    This topic has been closed for replies.
    Best answer by Giuseppe DI-GIORE

    Hello,

    I suspect you have configured FlexRay output pins and not CAN pins.

    Accordingly to board schematics [link] the pin to configure for CAN are:

    • PA12 - RX
    • PA13 - TX

    Also:

    • jumper JP11 must be in position 1-2

    alternatively

    • set JP11 in position 2-3
    • configure PD4 as push-pull
    • drive PD4 low state

    Please note that, in SPC5Studio, CAN demo configurations are in External Loopback mode,

    so. output is seen on CAN bus, but no external input is received.

    Regards,

    Giuseppe

    1 reply

    Giuseppe DI-GIORE
    ST Employee
    January 11, 2021

    Hello,

    I suspect you have configured FlexRay output pins and not CAN pins.

    Accordingly to board schematics [link] the pin to configure for CAN are:

    • PA12 - RX
    • PA13 - TX

    Also:

    • jumper JP11 must be in position 1-2

    alternatively

    • set JP11 in position 2-3
    • configure PD4 as push-pull
    • drive PD4 low state

    Please note that, in SPC5Studio, CAN demo configurations are in External Loopback mode,

    so. output is seen on CAN bus, but no external input is received.

    Regards,

    Giuseppe