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.

AM3517 reference code for DMA to drive SDIO bus

Other Parts Discussed in Thread: AM3517

Hello StarterWare forum:

We are looking to set up SDIO on an AM3517 that is running a custom application instead of Linux.  Part of the project involves a high data rate output that necessitates the use of DMA to drive the SDIO bus we are going to be using.

We have not been able to find much in the way of example code for this on the TI sites.

The only thing we’ve been able to pull down is the U-boot driver, but that uses polling.

Is there any reference code or example projects we can reference?

I posted this initially on the Sitara forum and got this feedback:

The Starterware MMC/SD driver makes use of DMA as far as I know, but unfortunately there is no Starterware version for AM35XX so you may want to check with the StarterWare forum.

Any feedback or input is welcomed and appreciated!

Thanks again!

Paul

  • HI Paul,

    There is a MMCSD example that uses DMA scheduled to be part of an upcoming release. It won't be part of the Starterware package, but a RTOS based example. Please bump this post in a few weeks to get an update.

    As you might have already known, there is a MMCSD example for the AM335x GPEVM, without DMA located in the current Processor SDK release located at C:\ti\pdk_am335x_1_0_0\packages\MyExampleProjects\MMCSD_evmAM335x_armTestProject.

    Lali

  • Lalindra,

    Is there any update on when the example will be released?

    Thanks,

    Don
  • Don,

    Unfortunately, not at this time.

    Lali
  • Hi Don,

    I have an update for you.

    Please grab Processor SDK 2.0.1 RTOS release and look at the RTOS example located at C:\ti\pdk_am335x_1_0_1\packages\MyExampleProjects\MMCSD_evmAM335x_DMA_armTestProject

    Once the package is downloaded, the PDK would need to be built using pdkProjectCreate.bat. The procedure to do this is described in the rebuilding PDK section.

    Hope this helps.

    Lali

  • Lalindra,

    Thanks for this. I've downloaded and ran the installer and I'm working through rebuilding the PDK. I'm able to run the setupenv.bat and call a 'gmake clean' without issue. However, when I attempt 'make all' I get an error indicating that 'evmAM335x_lld_init.oa8fg' cannot be found and the build stops. I've navigated to where the makefile indicates this file should be and am able to confirm that it is not there. I did some googling to see if I could download the file and manually place it, but have had no success. I also suspect that there are more files missing from the directory because it is empty. 

    The file looks like it should be located at this path: 

    C:\ti\pdk_am335x_1_0_1\packages\ti\board\lib\evmAM335x\armv7\obj\src\evmAM335x

    I'm doing this on a windows 7 machine. Is there anywhere I can download the rest of the package?

    Thanks,

    Don

  • Don,

    Apologies that you are having trouble getting this going.

    Did you get a chance to peruse this doc? http://processors.wiki.ti.com/index.php/Rebuilding_The_PDK. If you notice, there is a section that mentions to ensure that the Processor SDK components are registered with CCS prior to executing the .bat. I assume you are using CCS 6.1.2 as this version is required.

    Starting CCS after installing the Processor SDK products will cause CCS to find and register any new products. Errors will occur during PDK project creation if any dependent products have not been registered with CCS.

    This is the method I usually follow to generate the examples:

    Typically if you have the CCS installation at C:\ti\ccsv6 and the ProcSDK package at C:\ti , then all that needs to be done is running pdkProjectCreate.bat in your cmd console.

    Please ensure that the release components are registered on your CCS installation as mentioned above, and also ensure that CCS is closed prior to running pdkProject Create.bat.

    The instructions to run pdkProjectCreate.bat are located at the top of that file. for e.g; C:\ti\pdk_am335x_1_0_1\packages>pdkProjectCreate.bat AM335x all little all arm

    After a few mins of running, this will kick out the examples to a directory C:\ti\pdk_am335x_1_0_1\packages\MyExampleProjects.

    Lali

    [EDIT] some stuff got chopped off in the last post. Added them again.


  • Lalindra,

    I was going off of that document, but using CCS 6.0.0. I expect that this is my problem. Thanks for the help with this!

    Don