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.

Work with SPI on TMS320C6657

Other Parts Discussed in Thread: TMS320C6657

Hello,

I'm working with the evaluation kit TMS320C6657 and I need to communicate with A2D through SPI component.

As I read, there is software API in PDK for hardware components and example codes for some of them in BIOS_MCSDK_2.0_User_Guide(UART GPIO etc.) .

In addition I understand that the SPI is connected to the NOR flash memory and to the FPGA on the board, Is there any option to work with it directly through the DSP ?

Is there any example program/codes for the SPI component  ?

Thank you, 

Joni Sheingouz.

  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • Please refer below thread for answer.

    https://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/457492

    In your case, you may need install and refer latest MCSDK 2.x. Please find the download and user guiide links below my signature.

    Platform Libs: ~\ti\pdk_C6657_1_1_2_6\packages\ti\platform\evmc6657l\platform_lib

    CSL: ~:\ti\pdk_C6657_1_1_2_6\packages\ti\csl

  • Thank Rajasekaran K fo your response,

    I'm already have the packages, in that packages I found the files like evmc665x_spi.c that supposed to work with the NOR memory that connected through the SPI, can I use these functions to program the DSP if I connect external hardware through these ports?

    In addition , I found files : spi.c, spi_api.c and spiutil.c at C:\ti\mcsdk_2_00_xx_xx\tools\boot_loader\ibl\src\hw\spi folder ,
    are that files useful for using SPI in the DSP ?

    Thank you ,
    Joni Shein.

  • I'm already have the packages, in that packages I found the files like evmc665x_spi.c that supposed to work with the NOR memory that connected through the SPI, can I use these functions to program the DSP if I connect external hardware through these ports?

    You may need configure the spi peripheral with reference to the external hardware connected to these ports.

    In addition , I found files : spi.c, spi_api.c and spiutil.c at C:\ti\mcsdk_2_00_xx_xx\tools\boot_loader\ibl\src\hw\spi folder ,
    are that files useful for using SPI in the DSP ?

    Yes. These are all very low level init, read and write functions. You can write own wrapper functions around it to use if for the custom hardware configurations.

    Thank you.