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.
Tool/software:
Champs:
Q1. Do we have the DMA support for the 3 Native CAN interface on AM62?
Q2. If we have other 4 SPI using TCAN4550, can we have the DMA support for this TCAN4550 as well?
BR Rio
Hi,
DMA mode of operation is not currently supported on the CAN instances on AM62x.
We have to look into the SPI DMA support with TCAN4550. I will get back on this.
Regards,
Aparna
Hi,
The DMA mode of operation is supported for main domain MCAN and SPI instances. For SPI, the DMA example is already a part of SDK. For MCAN, the example needs to ported from AM64x, this will requires some development effort.
Please find the information in AM62x TRM:
Regards,
Aparna
Hi Apama:
-->For MCAN, the example needs to ported from AM64x, this will requires some development effort.
May you help us to find the MCAN DMA example code? Where is the example path and file name?
BR Rio
Hello Rio-san,
Documentation link: https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/09_02_01_05/exports/docs/api_guide_am64x/EXAMPLES_DRIVERS_MCAN_LOOPBACK_DMA.html
SDK example code: /mcu_plus_sdk_am64x_09_02_01_05/examples/drivers/mcan/mcan_loopback_dma/
Regards,
Aparna
Hi Apama:
-->For SPI, the DMA example is already a part of SDK
Sorry, where is the code or config to enable the SPI DMA?
Is it enabled by default SDK?
BR Rio
Hi Apama:
So, customer needs to port the MCU SDK for MCAN DMA from 64 to 62?
If will be better than TI prepare for this since we never know if this will work properly.
BR Rio
Hello Rio-san,
Sorry, where is the code or config to enable the SPI DMA?
So, customer needs to port the MCU SDK for MCAN DMA from 64 to 62?
If will be better than TI prepare for this since we never know if this will work properly.
Sure, we will try the porting work at our end.
Regards,
Aparna
Hi Apama:
please let us know when will this MCAN DMA porting is done, customer is asking us the schedule.
Thanks.
BR Rio
Hello,
May I know if the requirement is on RTOS or Linux SDK?
It is not possible to add DMA support on Linux SDK.
The DMA mode of operation is supported for main domain MCAN
And, 2 out of 3 CAN ports are MCU_MCANs, hence the DMA support can be added for one main domain MCAN port.
Regards,
Aparna
Hi Apama:
#1. If the Linux is not possible, lets focus on the MCU SDK.
#2. So, if you implement this on the MCU SDK, can you build the MCU FW to us, and make the Linux natively load this FW to make the MCAN DMA working
Here is what I think:
Step1: BU to implement this in the MCU SDK for MCAN DMA, generated the MCU FW.
Step2: Then, BU to make this MCU FW resident in the Linux SDK to load it.
Step3: Thus, the Linux SDK will have the MCCAN DMA working.
plz let me know if my thinking is correct. If correct, please proceed it.
Thanks.
BR Rio
Hi Rio,
The suggested implementation maynot work.
I will post further updates soon.
Regards,
Aparna
Hi Rio,
There no plan to add DMA support for CAN. The implementation suggested by you is not feasible.
Regards,
Aparna
Hi Apama:
My customer is requesting this since they will have 3 MCAN used + 4 SPI with TCAN.
if the native MCAN has no DMA, may you comment if this use case will work and reliable?
Thanks.
BR Rio
Hi Rio,
This use-case has not been tested. In theory this should work. There are some system level analysis to be done before moving forward.
may you comment if this use case will work and reliable?
This cannot be confirmed as of now.
Regards,
Aparna