Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Do anybody here use the CAN module of a DSP from Texas Instruments?

I'm using the TMS320LF2406 with the CAN transceiver UC5350 also from TI.
We develop a motor controll aplication for an electric vehicle.
I want to use CAN as communication to a Notebook for high speed data logging.
At the moment I have problems to receive CAN- frames from the DSP.
My problem is that I don't know where to search the failure in the DSP Software or in LABView.

Things seem to work correctly:
- sending frames from the DSP, but: the DSP gets no acknowledge bits from the connected ni-can card. (see: CAN frame bits)

- sending frames from ni-can & LABView.

And this doesn't work:

I sent CAN frames from the DSP and started a LABView vi which should receive them. Th
en
the DSP- CAN -module stops to send frames and changes into a configuration mode (I don't know why).

The vi displays a error: ncWaitForState has a time out during waiting for CAN objects in the read Queue.

I've read all documentation for the DSP CAN module and the ni-can, but I can not find the failure.
(120 ohm resistors are connected, the can bus lenght is 1m, baud rate=125 kbaud, standart frames are used, ID = 5 ...)

Yours sincerely Golubkov Andrej.
0 Kudos
Message 1 of 2
(4,442 Views)
Hello,
The first thing to check is whether the arbitration ID is correct. Instead of doing an object read , do the network read and see if you can detect the DSP frames.
If the ncWait is timing out it is possible that it does not recognize the device at the other end. Also check the configuration cluster or the instrument cluster for the DSP module ( contacting TI Tech Support will help). If the DSP module is expecting a non standard baud rate then you will have to specify the appropriate Bit Timing registers ( BRT0 and BTR1) for the Baud Rate.
0 Kudos
Message 2 of 2
(4,442 Views)