Part Number: TDA2EVM5777
Hi,
I want to use CAN bus in RTOS, is TI provide the driver(API) ?
Regards
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.
Hi,
can you check if this document helps:
Regards,
Yordan
Hi Wall-E,
please disregard my previous answer, I missed that you are using TDA2x.
You can check this example and see if it works for you:
Regards,
Yordan
Hi Yordan,
It seems the PDK CAN driver is independent of VisionSDK. And I have no JTAG debuger to download the binary object.
Is a way to use CAN in VisionSDK? Like I can capture image from camera through IssCapute Link. I want to use CAN or other peripheral like camera.
Regards.
H Wall-E,
I have pinged CAN experts, they will reply here soon.
Regards,
Yordan
Hi Wall-E,
TDA2 does not have an MCAN module in it. Instead of that, it has a DCAN module that does the handling of the CAN protocol. The sample application for DCAN is available here: 'pdk\packages\ti\csl\example\dcan\dcanLoopback'. You can try this application.
VSDK does have a use-case available for the DCAN module which is available at '\vision_sdk\apps\src\rtos\modules\dcan'. I think this is only available/validated for TDA3x SoC. You can port the same use-case for TDA2x.
Thanks & Regards,
Vivek Dhande.
Texas Instruments (India) Pvt Ltd
Hi Dhande,
I want to port this usecase for TDA2Px, I search the topic in forum and found this:
And I meet the same problem, I cannot receive data from a external CAN device but the external CAN device can receive the data from TDA2Px when using loopback mode.
The author said he resolve this problem through Need modify "platform_tda2xx_pad_config.c" setting to modify RX pin of DCAN form AD17 (Wakeup0) to G19(dcan1_rx) if use TDA2x EVM. But I still don't know how to modify because I didn't find this configuration. Perhaps we use the different VisionSDK version. Mine is 3.07.
So could you tell me How to receive data from external CAN device in VisionSDK 3.07 in TDA2Px ?
Regards
Hi Wall-E,
Looks like you are facing the same issue. Can you please configure DCAN-RX PAD on TDA2Px?
Thanks & Regards,
Vivek Dhande.
Texas Instruments (India) Pvt Ltd
Hi Wall-E,
To port existing DCAN use-case from TDA3x to TDA2Px, you need to take care of the following:
To do the PAD configurations:
You can add your own API in the file 'ti_components\drivers\pdk_xx_xx_xx_xx\packages\ti\drv\stw_lld\platform\src\tda2xx\platform_tda2xx_pad_config.c' and call it in the application OR you can modify the existing one also.
Please refer to 'PlatformDCAN1PadConfig' API present in the same file for more details.
Thanks & Regards,
Vivek Dhande.
Texas Instruments (India) Pvt Ltd