This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: CAN Example program not working in TMS320F28335 Board

Part Number: TMS320F28335
Other Parts Discussed in Thread: TMS320F28379D, C2000WARE

Tool/software:

Dear Sir,

As you said that ACK was not coming from CAN B and hence Yesterday we have introduced another node based on MCP2515 -Arduino combination in the bus and it is transmitting CAN messages .  Pl see the above test setup pic. We watched the CAN Bus  signals using MICROCHIP CAN Analyzer .  Pl observe the pic  with message ID as 0x100 message of only the MCP 2515 is coming. But TMS335's data is not at all seen in the bus. My doubt is , though its own CANB is not transmitting also, seeing there is some other node's activity, TMS bus data should have come out of the deadlock do while loop and given its result right. But that didn't happen and the loop count is always zero as it is not still coming out of the dowhile loop. I have also captured the Error status register details.  Pl send me the exact good working code or indicate under which C2000 ware is best and also how to handle this kind of error and come out of it?  All the nodes in the bus are transmitted at 500 Kbps bit rate.

To answer your physical connection details , two transceivers inputs one at each eCAN A (GPIO 31 and GPIO30 ), and at eCAN B (GPIO8, GPIO9 ) and the transeivers output of both connected (CAN H of eCANA to CANH of eCAN B  & CAN L of eCANA to CANL of eCAN B and  this junction is observed through CRO (attached earlier) as well as CAN analyzer. Am I doing anything wrong?

Meanwhile as there is a hardpressing  requirement to complete at the earliest, I also shifted to another board namely TMS320F28379D and tried the same CAN A to B program external with one external transceiver connected and  (echo back program was perfect). There also the bus is idle always.

I wanted you to help me out for solving in TMS 320F28335 . Thank you 

  • Hello,

    The eCANB uses GPIO8 and GPIO10 for TX and RX. I don't have F2833x control card. Does the card contain transceivers and termination resistor and CAN-A and CAN-B?

    Please use the example in C2x SDK which is located at:

    C:\ti\C2000Ware_5_02_00_00\device_support\f2833x\examples\ecan_a_to_b_xmit