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.

Programming a DSP (a newbie question)

Other Parts Discussed in Thread: TMS320LF2406A, CCSTUDIO

Dear people, 

I have a TMS320LF2406A  DSP and Code Composer Studio v3.3, however I do not have any clue where to start. I have watched many tutorials but I cannot find any tutorials to solve my problem. 

I want to code in C language and do it from zero. In all tutorials, people are adding some files to their projects or doing something very different. Generally people using several kits however I do not have. 

I plugged xds510LC to my dsp and selected my dsp model from ccs setup. Then started the ccs and created new project. However, I do not know which configuration files I should load or where to find or what to write at the beginning. I want to make HIGH or LOW some specific gpios. Is not there any tutorials, blinking LED or something for me? I do not even know how to reach a specific output. Please help me. 

  • Hi Volkan,

    This device is  pretty old and I'm unsure whether the support is still available. Let me forward this to the C2000 team.

    Regards,

    Gautam

  • A good source of information is the product page, in particular the Technical documents tab and the Tools & software tab.  There you can find a Getting Started document.  In addition, you will see information on the related evaluation module.  Such evaluation modules are a good intro to a product.  While you may not be interested in purchasing the EVM itself, such products often have examples that can give you ideas on how to get started on the DSP.

  • You can refer this link which has sample codes both in C & Assembly:
    http://www.ti.com/mcu/docs/mcuprodcodeexamples.tsp?sectionId=96&tabId=1470


    Check under: C24x Header Files tab

    Regards,
    Gautam

  • I thank you a lot guys, however I cannot solve the problem. I have read the documents you sent but they do not give the knowledge I need or I could not find.
  • Volkan, those are the only links available for the device. Also, those documents are enough to get you started. What else are you looking for? Step-by-step procedure? - Not available as this being a very old device.

    Regards,
    Gautam
  • I am watching the tutorials for other devices, the closest device is 2407 and they are adding some header files (dsk2407.h) and adding linker and bios files. I do not have these files, how they get these? I am looking tutorials and for example in the code this "do the IO" part (on the screenshot), I do not know how to reach an IO or program IO as input or output. I am feeling like my brain going to explode, I cannot understand anything. Programming DSP is much harder than programming other hardware.

  • Keep looking at examples.  For instance the Software Test Bench has a regs240x.h that has a lot of the registers mapped for you.  That might be similar to "dsk2407.h".  Additional examples can be found in your Code Composer 3 installation, e.g. C:\CCStudio_v3.3\tutorial\dsk2407.  You can find example linker command files (.cmd) there.

    If you are unfamiliar with microcontrollers, that is a big topic.  You might review the reference guide for your device.  There you will find a memory map.  The way a lot of micros work are that the various peripherals are "memory mapped".  That is, there is some address (or multiple) that represents a peripheral, and can be used to program that peripheral.  Toggling one of the bit of a certain address might set a GPIO Pin high.  This is what files like "regs240x.h" assist you with, they give names to the addresses so it can be easier to understand what you are programming.