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.

TMS320C5515 CSL SPI EXAMPLE spi_eeprom_sample() function

Dear all,

I am working on C5515 EVM from Spectrum Digital

I tried to run SPI EXAMPLE supported by CSL library.

I commented the following lines in source code:

line 78 #define CHIP_C5517

line 129 #define CHIP_C5504_C5514

line 135 #define CHIP_5514

to be able to compile the source code for C5515 EVM platform.

I built the code without errors but with 1 warning

But when I checked    csl_spi_example.c,i saw line 184 to 194 ,where spi_eeprom_sample() function placed ,colored in grey-this means CCS discarded this code sample.

How can i correct this issue to run spi_eeprom_sample() ?

regards

  • Hi,

      Can you only comment #define CHIP_C5517 that is line 78 and check.

      This should work.

    Regards

     Vasanth

     

  • Dear Vasantha;

    I tried it with CCSv5.3 it did not work but I tried it with CCSv5.5 it worked.I did not know what causes the issue.Thanks for help

  • Dear Vasantha;

    I tried CCS v5.3 with CSL 3.03 .I opened the project using Project->Import Existing CCS Eclipse projects.It came with line 78 commented in csl_general.h

    I selected the SPI example under ccs_v5.0_examples folder.

    I deleted Built ->Dependencies.Then I linked build\C55XXCSL_LP.lib into project.

    I builted the project without error and I am able to see spi_eeprom_sample(void) without painted gray.

    I guess there is an issue with CSL v3.04.Because when i follow same steps with CCSv5.3 and CSL 3.04 ,i cant reach spi_eeprom_sample(void)

    Regards

  • Be it CC5.3 or CCS5.5, if you import both the C55XXCSL_LP and spi/CSL_SPI_Example projects  in the ccs_v5.0_examples folder, comment only line#78: #define CHIP_C5517 as mentioned above in csl_general.h, and re-build the CSL_SPI_Example_out project, the dependency C55XXCSL_LP project also gets re-built, and the

    #else
    /**
     * \brief API to test SPI read\write API by writing to EEPROM
     */

    section gets activated.

    Best Regards.