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.

A beginner's troubles with CCS and sample projects (F28035 - TMDS2MTRPFCKIT)

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

I am an electrical engineer with interest in DSP programming and especially motor control. I therefore ordered the TMDS2MTRPFCKIT (dual motor control development kit) to learn how stuff works and experiment with sensorless control etc.

But unfortunately there's been a series of obstacles in my way from the beginning:

1: All the samples and instructions included on the CD are made for CCS 3.3. The actual CCS on the disk was 4.2.1 so there was no "plug and play".

2: After giving up on the motor control samples, I have downloaded the ControlSuite and started fresh with a blinking led sample just to try to get something to work.

3: This is what I have done so far:

3a: Downloaded latest controlSuite and installed it at c:\TI

3b: In CCS: File -> Import -> "Existing Project to Workspace" -> "C:\TI\controlSUITE\development_kits\TemplateProjects\FlashingLeds-F28035_v1.0" --> ticked "Copy project into workspace"

3c: Corrected all the include folders from

to

because of linking errors in the $-stuff.


3d: Searched for and moved the following files from various folders into the workspace folder (they had exclamation marks on them in the project browser and was missing)
--DSP2803x_CodeStartBranch.asm
--DSP2803x_GlobalVariableDefs.c
--SciCommsGui.c
--DSP2803x_Headers_nonBIOS.cmd

3e: Corrected "elif" to "elseif" on line nr 104 in SciCommsGui.c
( #elif DSP2802x_DEVICE_H || DSP2803x_DEVICE_H) (caused build error)

3f: Commented out line 264 and 272 in DSP2803x_GlobalVariableDefs.c because of build error
264: volatile struct HRCAP_REGS HRCap1Regs;
272: volatile struct HRCAP_REGS HRCap2Regs;
Error: "../DSP2803x_GlobalVariableDefs.c", line 264: error: variable "HRCap1Regs" was declared with a never-completed type

Now i can build without errors (just 3 warnings).

3g: I press "debug active project" and sectors are deleted and program is downloaded.

Now what?

edit: I just found documentation and realized that i was using "flash" when i should be using "ram". This change caused a lot of new build errors, so I'm gonna try and sort them out and come back with an update.

Edit 2: OK guys, after cleaning a few of my own mistakes (copy paste error in one include folder), i actually got the sample to work - so now the LD3 is blinking like a goddam x-mas tree!

Hooray