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.

DMA with eZdsp 5535 help!

Other Parts Discussed in Thread: TMS320C5535, CCSTUDIO

Hi,

I need to use DMA in eZdsp c5535 to get audio from I2S while i process previous data.

I tried using the DMA examples on C5505 but they don't work, this is the example:

 http://c5505-ezdsp.googlecode.com/files/USB_Stick_AudioFilter1.zip

when i run it i get this error while compiling: 

Error connecting to the target:
(Error -1063 @ 0x0)
Device ID is not recognized or is not supported by driver. Confirm device and emulator configuration is correct, or update device driver.
(Release 5.0.429.0)

I just need to use one DMA channel, since i'm using just one channel input, and i only need it to 
copy from the i2S to buffer while i process. As i understand it's about the simplest case possible.

Can someone upload an example on how to do this on the C5535?

Since none of the example codes worked, i basically have no idea where to begin, any help on how to get 
DMA working will be much appreciated.

Thanks in advance!

 

  • Hi Sergio,

    The problem is with CCS connecting to the target rather than C5535 DMA or I2S functionality vis-a-vis the audio codec on-board. Please check the ccxml file that this CCS project has. Please change the following parameters:

    Connection: Texas Instruments XDS100v2 USB Emulator

    Board or Device: Choose EZDSP5535 or another option: TMS320C5535

    Click on Target Configuration (R-hand side Top section in the file): In the 'Advanced' tab that opens up, on the L-Hand side, Click on 'C55xx'. Now on the R-hand side, choose a proper gel file for the initialization script corresponding to C5535 that will be available with the development kit you have (the CSL(Chip Support Library)). Or the gel file might even be picked up from the latest CSL available online. You may use a C5515 gel file for the same as well as both devices are quite similar by functionality.

    The project that you've shared here expects a C5505 device and XDS100V1 USB Emulator - options which are not at all compatible with C5535 EZDSP. Hence the target connection and emulator/device configuration errors.

    The following link has the quick start guide and guidelines w.r.t C5535 EzDSP kit:

    http://support.spectrumdigital.com/boards/ezdsp5535/revc/

    Best Regards.

  • Ravi.

    Thanks, your answer was spot on. I should have checked that.

    Now the program runs, but my problem with DMA still stands. This example works for AIC3254 and I20,
    and it doesn't use CSL files so it's even harder to figure out what it is intended to do.

    It would be very helpfull to start with something that works rather than a code that i have to fully modify in order to make it work, if i can. I'm new to this DSP and i was hopeing to find some working examples.

    Can somebody in TI post an example on how to work DMA with the C5535? Or anyone else who has figured it out?

    Thanks in advance!

  • I tried an example i found on the DSP folder: csl_dma_intcExample.c

    and i get this error message: identifier "CSL_DmaRegsOvly" is undifined

    i go to the line and it says: CSL_DmaRegsOvly        dmaRegs;    /**< register overlay struct pointer  */

    what's the correct definition for CSL_DmaRegsOvly ?

    any ideas??

    Thanks!

  • Would you be having the latest csl? The latest one available is v3.03 at the following link:

    http://www.ti.com/tool/sprc133

    The dma_intc example here doesn't have any such error.

    Moreover, the I2S examples there (pls check the ccs_v5.0_examples folder) have an audio loopback using dma  example code (Idleloop example). The same should be definitely helpful.

    Best Regards.

  • Ravi,

    Thanks for your help! 

    I downloaded the last CSL, but i can´t make them work. I tried importing the projects, creating new ones and pasteing the files, i read the guide, commented out the lines on csl_general.h in order to use ezdsp5535, use the gel file it says there, but i get errors.

    I'm using CCS 4.2.4, maybe that's why CSS v5 projects do not work. Can i download CCS v5?

    I'm configuring the project using rts55h.lib, because it's what it said on the quickstart guide, but maybe i need to use a different one here?

    Thanks!!

  • I downloaded CCS v5 but i can´t make it work.

    I followed th steps in CSL guide but i get this errors:

    Description Resource Path Location Type
    Build-configuration 'com.ti.ccstudio.buildDefinitions.C5500.Debug.1599296540' does not exist in the referenced project 'C55XXCSL_LP'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration. CSL_I2S_IdleLoop_Out CSL_I2S_IdleLoop_Out Problems

    The file 'C55XXCSL_LP' is located on the root folder, i added it to the include list. There's some other error
    about gmake. 

    I would delete everything, reinstall, and start from scratch, but i'd be loosing the last month of work,
    plus, at this point i'm not sure it is gonna work either way.

    Why did it work right out of the box with CCS v4 and it does not work with CCS v5?

    i do not mind using CCS v4, but i need to make the DMA examples work, and i dunno if that's posible with that version because no one from TI is answering.

  • Please remove the dependent project "C55xxCSL_LP" in Project Properties > Build > Dependencies.

    Then go to C5500 Linker > File Search Path. In the top half, add C55xxCSL_LP.lib. In the bottom half, add the path for this library "${COMMON_ROOT}\build". Do remove the previous references to C55xCSL_LP.lib in both the top and bottom sections here.

    Then rebuild the project. It should go through.

    Best Regards.

  • Thanks again Ravi!

    I finally found the problem. I installed the last CSL library (v3.03), and read the instructions on how to 

    install it, but it seems to be a mistake in the documentation, or it's outdated.

    Documentation says:

    For Running the Projects on C5535 DSP:
    • Make sure that #define CHIP_C5517 near the top of file c55xx_csl_3.03\inc\csl_general.h. is
    commented out (e.g., with a beginning “//”).
    • Make sure that #define C5515_EVM and #define C5515_EZDSP (on file
    c55xx_csl_3.03\inc\csl_general.h) are commented out so the condition will define
    C5535_EZDSP.
    • To run CCSv5 examples, change the emulator target configuration file (*.ccxml) to use
    c55xx_csl_3.03\build\c5505evm_pg20.gel as your source of gel commands.
    o Open CCSv5
    o Open Target Configuration for desired target board.
    o Click Target Configuration under the Advanced tab.
    o Click on C55xx under the All Connections window.
    o Under CPU Properties click Browse for the initialization script.
    o Select desired Gel file: c55xx_csl_3.03\build\c5505evm_pg20.gel.
    o Save updated configuration.

     Apparently, this version of CSL has no need to comment any lines on csl_general.h, and you do not need
    to change the gel file either.

    My other problem, was that the tutorial on how to port C500 to enable audio, says to change a few settings, like:

    ptr_size -> 32
    and memory size -> huge.

    This things are no longer needed and if you do them, the project will not compile

    Problem, solved, thank you!

  • Ravi Sashank Kakarlamudi1 said:

    Would you be having the latest csl? The latest one available is v3.03 at the following link:

    http://www.ti.com/tool/sprc133

    The dma_intc example here doesn't have any such error.

    Moreover, the I2S examples there (pls check the ccs_v5.0_examples folder) have an audio loopback using dma  example code (Idleloop example). The same should be definitely helpful.

    Best Regards.

    Hi ,Do you know if the idleloop example project support EZDSP5515? It seems that it supports C5515 well from the comments in the cede file, but there is no sound out when deguggeing it with EZDSP5515. 

    Regards,

    Chunhai