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.

CSL I2S examples. Buffers doesnt match in I2S loopback test.

Hi. I'm trying to run the I2S examples from CSL on the 5505 USB Stick (The examples from ..\TMS320VC55XCSL-LOWPWR\c55xx_csl\ccs_v4.0_examples\i2s directory you get when you install TMS320VC55XCSL-LOWPWR-2.0.0.0).  But I get

I2S Read & Write Buffers doesn't Match!!!

CSL I2S DMA MODE TEST FAILED!!

I can see this is the case when I look at the buffers in the memory. Anyone knows what could be wrong?

Thanks,

Stefan

 

  • Stefan,

    The examples for CSL were developed for the VC5505 EVM and not the eZdsp Stick.  The differences in HW are probably causing the mismatch you are seeing.  I haven't looked at the examples, so am not sure what changes would need to be made for the example to run on the eZdsp Stick. 

    Perhaps someone from the Product team can comment on whether the ability to run the CSL examples on the eZdsp Stick are being addressed.

    Regards.

  • Ah ok, Thanks. I thought that since the I2S is set to loop back mode, that it wouldn't be dependent on the hardware, since the I2S hardware is on the VC5505 chip? 

    Best Regards,

    Stefan

     

  • Ah, I just noticed that you are using the new Low Power CSL release.  Did you see the migration document for moving from release 1.0 to release 2.0?  It is available here: http://tiexpressdsp.com/index.php/TMS320VC5504/05_to_TMS320C5504/05/14/15_Migration.  The new release of the CSL defaults to the new C5504/05/14/15 devices.  If you want to use the VC5504/05 DSP, then you need to follow this direction:

     

    Near the start of file c55x_csl\inc\csl_general, uncomment "//#define CHIP_5505". This will cause your upcoming CSL 2.x build to target your (PG 1.4) silicon.

    This note should also be in the Release Notes that came with the CSL package.  Is it possible this is your issue?

    Regards.

  • Ouch! Forgot to do that. Just tried it, but It didnt help. But thanks! I changed uncommented the "//#define CHIP_5505" and put "#define CHIP_5515" in a comment.

  • Hi Stefan,

    I receive a passing result when running the CSL_I2S_DMAExampale with the C5505 EZDSP. I was also using the latest C55XCSL-LOWPOWER-2.00.00.00.

    Did you perform the instructions in the readme.txt file? (<CSL_Path>\c55xx_csl\ccs_v4.0_examples\readme.txt)

                For running projects on C5505 DSP:

                1. Define macro 'CHIP_5505' in the file c55xx_csl\inc\csl_general.h
                2. Copy the contents of gel file c55xx_csl\build\c5505evm.gel to             c55xx_csl\ccs_v4.0_examples\c55xxevm.gel…

    After you make these changes, you need to rebuild the CSL library. It should get rebuilt every time you rebuild the CSL_I2S_DMAExampale, if you followed the instructions in C55XCSL-LOWPOWER-2.00.00.00_Release_Notes.pdf (located in your <CSL_PATH>).

    Instead of commenting the #define, I used the #undef pragma inside of csl_general.h:

                #undef  CHIP_5505

                #ifndef CHIP_5505
                            #define CHIP_5515
                #endif

    Here is the output the program generates on my screen:

    CSL I2S DMA MODE TEST!

    I2S Module Instance opened successfully
    I2S Module Configured successfully
    I2S Reset Successful
    I2S Close Successful
    I2S Read & Write Buffers Match!!!

    CSL I2S DMA MODE TEST PASSED!

    Please let us know if you still cannot get it to work.

     

    Hope this helps,

    Mark

  • Thanks Mark. I overwrote the gel file now and rebuilt the cslVC5505.lib file and made sure my project uses that library fila and that gel file. Sometimes I get the a passes now, but it mostly get a fail still. I haven't figure out any pattern to it yet.

     

    Thanks,

    Stefan

  • I need the this board because it has stereo in and  hp out.

    The only i2s or i2c example I can make work is I2c loopback at 12 and 40 mh..

    I have followed the migration doc. chip 5505 and copy the gel files.

    Has any one made all the I2S examples work especially the polled example.

    Martin

  • I made it work

  • First look at csl_i2s.c code which is included in the system.

    Some DMA operations are not supported as per note in code.

    I cant use PLL 12 mh so I change to PLL 60 mh by script ( by target in menu bar).

    No sure I ever got the loopback to work.

    Martin