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.

EVMK2GX: DCAN example project for CCS

Part Number: EVMK2GX
Other Parts Discussed in Thread: 66AK2G12,

CCS 10.2

pdk_k2g_1_0_16

processor_sdk_rtos_k2g_6_03_00_106

bios_6_76_03_01

Can you please fix the pdkProjectCreate scripts to create a CCS example project for DCAN?  There is a zip file  rtos_template_app_am572x_c66.zip project in this thread... https://e2e.ti.com/support/processors/f/791/t/732704#pi320966=1, but I am not experienced enough to convert it from the AM572x.

Thank you,

Paul

  • Hi Paul,

    Can you elaborate more about the problem you had with the K2G pdkProjectCreate script?

    Thanks,

    Jianzhong

  • Jianzhong,

    When pdkProjectCreate.bat or .sh is run (in Windows or Linux), there are multiple example projects created in the folder ti/pdk_k2g_1_0_16/packages/MyExampleProjects.  These projects can then be imported into CCS to build and run.  None of the projects include DCAN.  Digging a bit deeper, I notice these projects are all created from the ti\pdk_k2g_1_0_16\packages\ti\drv folder.  With this version of the pdk, there is no subfolder for DCAN, so there is no project create in the MyExampleProjects folder.

    Paul

  • Hi Paul,

    Thanks for the explanation. Since DCAN is not in ti\drv, it means there is no low level driver for DCAN and there is no example CCS project. Can you take a look at board diagnostic for DCAN at packages\ti\board\diag\dcan and see if it serves your need? You can build it using the following commands:

    C:\ti\pdk_k2g_1_0_16\packages>pdksetupenv.bat
    
    C:\ti\pdk_k2g_1_0_16\packages>cd ti\board\diag
    
    C:\ti\pdk_k2g_1_0_16\packages\ti\board\diag>gmake evmK2G
    

    Regards,

    Jianzhong

  • Jianzhong,

    No, not really.  I built and ran that.  Is there a reason for no low level driver for dcan?  I will need to use both dcans on the 66ak2g12, either both on the dsp core, or one on arm core and one on the dsp.  So having the dsp driver and project would be a great benefit.  Is it possible you could provide a dcan example project to import into CCS that would run on the evmK2gx eval board?

    Paul

  • Hi Paul,

    I can ask internal SW development team if there is any plan to develop DCAN LLD. But for now, given the fact there is no DCAN LLD, you'll have to use CSL. There is also a DCAN example in CSL: packages\ti\csl\example\dcan\dcanLoopback. Hope that can help. You can take a PDK example project for ARM core or C66x, remove the source code from it and add DCAN code. 

    I'm afraid that's all we have for DCAN examples at this moment. If you need me to provide a DCAN example project, that won't happen any time soon and I cannot promise.

    Regards,

    Jianzhong