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.

TMS570LC4357-EP: tms570lc4357-ep

Part Number: TMS570LC4357-EP
Other Parts Discussed in Thread: TMDX570LC43HDK, HALCOGEN

I'm trying to implement SPI protocol for simple read and write of data from external hardware (receptacle) but i have no prior knowledge about coding can someone provide me with the code for TMS570LC43 Hercules Development Kit (TMDX570LC43HDK)

  • Hi Spoorthi,

    It is very easy to develop projects using Hercules devices.

    There are number of ready-made examples are available for these devices.

    Basically, you need 2 software's to get started with 

    1. CCS (Code Composer Studio) - It is an IDE used for build, debugging and flashing the project to the hardware

    2. HALCoGen - Which is useful to generate the driver layer for the project

    You can download these software tools in below link

    TMS570LS0432 data sheet, product information and support | TI.com

    Once you downloaded them watch below video, to know how to create an LED blink project

    Hercules Tutorial: Turning on the LEDs - YouTube

    Once you downloaded HALCoGen right, you can find number of examples (including SPI related examples) for your device in HALCoGen itself 

    just go through help topics in HALCoGen

    Once you go through the Help Topics

    You can find number of examples for the corresponding device which you created a project and there is a step-by-step procedure to create project, you can just follow those steps.

    --
    Thanks & Regards,
    Jagadish.

  • 1) I specifically need the code for SPI as it is not provided in halcogen example section, i have generated the required header files using halcogen.

    2) I wanted to know that, can i use mibspi as a replacement for standard spi. Which example should i need to use for communication between my board and external hardware given in halcogen example( loopback example or dma example or trigger tick) 

  • Hi Spoorthi,

    I am attaching one reference project for SPI, please go through it.

    SPI_MASTER_TEST_LC4357.zip

    This is a SPI master example, and in this project, you can basically do two configurations

    One is With DMA and other is with loop back. If we disable WITH_DMA means, then the project will work in polling mode.

    Basically, this project will transmit 128 half words of data. 

    So, using this project u can test both polling mode and DMA in loopback mode.

    --

    Thanks & Regards,
    Jagadish.

  • thank you soo much  for the example provided, how to configure clock frequency in this code, when i probed i observed clock of frequency 50hz from spi2clk pin (64-Expansion Connector J10 )