Skip to main content
SKim.19
Associate
December 21, 2020
Question

SPC570S-DISP CAN Frame Error

  • December 21, 2020
  • 5 replies
  • 1933 views

0693W000006GPy2QAG.bmpI'm currently trying to transmit the CAN frames using SPC570S-DISP.

I applied it to the SPC570S-DISP using only the example source code.

However, the CAN TX signal is output as shown in the picture above.

0693W000006GYKpQAO.pngUpper the picture is the peripheral Register set value.

FLT_CONF is setting Bus off status and to be generating the Tx_Error_Counter.

I think the Can Test Application source code seems to have a problem.

If anyone has solved this issue, please help.

​

    This topic has been closed for replies.

    5 replies

    Erwan YVIN
    ST Technical Moderator
    January 7, 2021

    Hello ,

    i have submitted a ticket for this issue.

    Which application do you launch ?

    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.
    SKim.19
    SKim.19Author
    Associate
    January 8, 2021

    Hello

    Thank you for interesting in my question.

    I`m using SPC5Studio.

    and the example program.

    using to steer unit for autonomous vehicle

    Thank you.

    Erwan YVIN
    ST Technical Moderator
    January 11, 2021

    0693W000007Anj0QAC.png0693W000007AnkBQAS.pngHello ,

    SPC570S CAN demo configures the CAN in loopback mode. So, there is n output.

    In order to enable output, loopback configuration flag has not to be checked. See attached pictures.

    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.
    Giuseppe DI-GIORE
    ST Employee
    January 11, 2021

    Hello,

    do not forget to configure also the external pins:

    • PD9 FlexCAN0 - RX
    • PD10 FlexCAN0 - TX

    and close JP6 and JP8

    See page 4/9 in schematics [link]

    Regards,

    Giuseppe

    SKim.19
    SKim.19Author
    Associate
    January 12, 2021

    Hello,

    Thank you for interesting in my issue.

    Giuseppe and Erwan said the external pin and the loopback check box.

    I modified. but it's the same result.

    if the loopback check box is enabled or the external pin is not set then the signal is not generated.

    I don't know the reason for what is a strange signal. 

    Would you check the CAN Example using the STC570S50 chip in SPC570S-DISP Board? 

    Help me, please.

    Thank you.