Other Parts Discussed in Thread: SN65HVD235
Hi all,
I have been trying to set a CAN communication between CANA and CANB based on can_external_transmit.c example
I have no access to the same example PINs for CANbus, namely 30,31, 10 and 8. However, my board has transceivers (SN65HVD235) with RXA and TXA for 36 and 37, and TXB and RXB for 38 and 39, respectively.
I have modified accordingly the GPIO muxing as follows, and I thought it was the only modification needed, given that the HW is in place:
//
GPIO_SetupPinMux(36, GPIO_MUX_CPU1, 6); //GPIO36 - CANRXA
GPIO_SetupPinOptions(36, GPIO_INPUT, GPIO_ASYNC);
GPIO_SetupPinMux(37, GPIO_MUX_CPU1, 6); //GPIO37 - CANTXA
GPIO_SetupPinOptions(37, GPIO_OUTPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(39, GPIO_MUX_CPU1, 6); //GPIO39 - CANRXB
GPIO_SetupPinOptions(39, GPIO_INPUT, GPIO_ASYNC);
GPIO_SetupPinMux(38, GPIO_MUX_CPU1, 6); //GPIO38 - CANTXB
GPIO_SetupPinOptions(38, GPIO_OUTPUT, GPIO_PUSHPULL);
//
I have already come across some help given on a similar issue in here: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/780470/tms320f28379d-can_external_transmit-code-not-working-with-changed-cantxa-canrxa-pin-to-gpio19-and-gpio18
However this has not helped in my case. I have a connection between CANA and B, so I have no missing node.
The firmware executes the TXmessage update, but it seems to never perform a reception, as the interrupt is never triggered.
Any help is very much appreciated.
Thanks,
Nicola