2021-03-25 12:24 PM
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
Solved! Go to Solution.
2021-03-26 12:36 PM
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,
2021-03-26 12:13 AM
Hi,
is the FlexCAN5 connected with a CAN transceiver ?
Regards,
Luigi
2021-03-26 12:36 PM
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,
2021-03-28 10:13 PM
Good news!
Regards,
Luigi