Getting Start with TMS320F28335 on windows host

Hello World Porject

setting "runtime support library"

In order to make sure the compiler using the FPU to do the floating point calculation, the runtime support library should be specified.

Right click on "Helloworld" project from the project explorer and choose "Properties" on the bottom. In case that project explorer does not show in the workbench, click view on the navigation bar and then click "project explorer" from the drop-down list.

Properties

Change the "runtime support library" to "rts2800_fpu32.lib" from the drop-down list. Then click "OK" button on the right-bottom corner.

runtime

Edit main.c and build project

Double click on main.c from "Project Explorer" and edit the main code as:

/*
 * main.c
 */
int main(void) {
    float a,b,c ;

    a = 1.2;
    b = 5.1;
    c = a*b;

    asm(" ESTOP0");
    while(1){;};
}

Then right click on "Helloworld" from "Project Explorer" and click "Build Project" the outcome will looks like:

main.c

On the output of the Console on the bottom, "finished building target: Helloworld.out" tells us that the compilation and linking is successful. Next move will be debug

Debug

Verify Emulator connection

Emulator is a tool to connect the target, which is TMS320F28335 in our case, to the host. Emulator can let us download code from the host to the target and debug.

click targetConfigs folder on the "ProjectExplorer" a file with the name of "TMS320F28335.ccxml" will show.

targetConfig

If "TMS320F28335.ccxml" doesn't exist, please create one by clicking file -> New -> "Target Configuration File".

targetConfigFile

And make everything is the same as: targetConfigFile1 and save the file as "TMS320F28335.ccxml".

Now, it's time to connect your development board to your host. Connect the board to the host by usb cable and turn on the red switch. Green LED will be turned on after the connection is OK.

Board

Then, double-click on TMS320F28335.ccxml" and click "Test Connection".

Test

After running the test, please scroll down to the bottom and the result will be:

jtag

Load Program

click "Helloworld" project make it active and then click the debug button, which looks like a bug just above the project explorer.

debug

CCS will enter the debug mode and the GUI will be:

debug1

Then, click the run button in the middle of the navigation bar and the program will run and stop just before the while loop. the result can be watched from the watch window, which is on the right-top side.

rs

Now, the hello world project finishes. You may develop your own code in CCS for TMS320F28335.