Skip to main content
CLamb.2267
Associate
March 25, 2021
Solved

Flexcan problem on spc560B64L7

  • March 25, 2021
  • 3 replies
  • 1240 views

hello everyone,

I use the spc560B064 chip for my project with 5 flexcan (flexcan0, flexcan1, flexcan2, flexcan4, flexcan5) use on the board.

I use the SPC560Bxx LowLevel driver generate by SPC5studio (v6.0) everything is good with the two first can unit but when I try to send frame with the flexcan 5 nothing happen (no activity on tx pin) the transmit code of the mailbox pass to 0x0C after transmit function call but stay at this value.

I double check and output pin are well configure, the Tx pin go high after init and stay there... even if I populate a tx mail box. PCR register for ouput pin and padsel for input are at good value.

Is anyone have an idea about the problem?

Thanks by advance

    This topic has been closed for replies.
    Best answer by CLamb.2267

    Hi,

    Yes the flexcan is connected to a tranceiver (fault tolerant low speed) and after some check around this it appear that the Rx Pin is continously low... so flexcan module (I think) try to receive something or lost arbitration again and again... after configuring the Rx pin with pull up in siul register the problem disapear and i can communicate in both tx and rx direction.

    Problem solve,

    3 replies

    zambrano.luigi
    ST Employee
    March 26, 2021

    Hi,

    is the FlexCAN5 connected with a CAN transceiver ?

    Regards,

    Luigi

    CLamb.2267
    CLamb.2267AuthorBest answer
    Associate
    March 26, 2021

    Hi,

    Yes the flexcan is connected to a tranceiver (fault tolerant low speed) and after some check around this it appear that the Rx Pin is continously low... so flexcan module (I think) try to receive something or lost arbitration again and again... after configuring the Rx pin with pull up in siul register the problem disapear and i can communicate in both tx and rx direction.

    Problem solve,

    zambrano.luigi
    ST Employee
    March 29, 2021

    Good news!

    Regards,

    Luigi