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.
Part Number: TMDXIDK5728
Tool/software: Linux
Hello,
I am running the newest Linux SDK on a SD card and I am root debugging through my JTAG to USB XDS100v2. I have a PCAN Connector attached to my J38 CAN header pins. I am able to send CAN frames FROM the EVM to the PCAN. I am not able to send frames TO the EVM from the PCAN.
I am using "candump any" as the command. I also have tried "candump -s 0 -l any" to turn off silent mode. I know my bitrate settings are fine due to being able to get the frames out of the EVM. When I attempt to send different frames from the PCAN interface, nothing shows up in the Serial PuTTY window and the BUS status goes to BUS HEAVY, indicating an ACK error.
Using "cansend can0 123#12.13.14.15.16.17.18.19" works fine. I get the frame in the PCAN.
Please help me to figure out how to remedy this error. I am wondering if it's a similar issue to the SDK-RTOS CAN problem, where the signal wasn't reaching the header pin.
Thank you,
Alec
Hi Schuyler,
Schuyler Patton said:I am unfamiliar with a PCAN connector, do you have a link to a site that describes what you are using?
This is a link to a thread where I was using the CAN1 connection, also using the PCAN. My current setup is using the J38 header pins.
Schuyler Patton said:
Based on the connector name it looks like you are using the IDK board. I am not familiar with the CAN RTOS problem you are referencing. I am not sure what to offer on your suggestion of the signal other than the reception issue that you are seeing could be tied to line termination. The ACK error might be confirming this. Who is reporting the error the sender or the EVM?
Yes, using IDK board. The sender (PCAN connector) is reporting the error in the GUI when I try to send a frame. There are no termination issues as there is a built-in termination in the IDK and a built-in termination in the PEAK/PCAN connector.
I am seeking assistance in what commands to issue to error check. I have very little experience in Linux, I am used to debugging in a CCS environment.
This is the TI issue reported and repaired in a recent RTOS SDK release: RTOS/AM5728: Connecting 2 IDK Boards for DCAN External Loopback Communication - Processors forum - Processors...
Schuyler Patton said:You mentioned that you are "candump any", is there a reason why you aren't using "candump can0"? I am just curious why the different command.
They are equivalent commands, I used 'any' just in case I was missing something. You are correct, can0 is the appropriate target.
Thank you,
Alec
Hi Schuyler,
Thanks for the reply. Now I am having no issues when sending the frames from the PCAN to the IDK. Please see the following screenshots:
Before the Interface was brought up:
After sending one frame from IDK to PCAN:
After sending multiple frames from PCAN to IDK:
Are these the most common debugging commands for error checking with CAN? Are there any others I should know about?
Thank you again for your help.
Regards,
Alec