You are currently viewing Programming the LaunchPad TMS320F28027F using Code Composer Studio

Programming the LaunchPad TMS320F28027F using Code Composer Studio

Spread the love

Steps to Program LaunchPad using CCS

☞Open Code Composer Studiov4, it will prompt for a workspace path, Select the matlab current folder path which contains simulink(.mdl) files.

☞Click Ok.

☞Click View in the menu –Choose Target Configurations.

☞Click Target in the menu – click New Target Configuration.

Choose the following settings

☞Connection – Texas Instruments XDS100v1 USB Emulator.

☞Device – TMS320F28027F.

☞Click Save.

☞Right click NewTargetConfiguration.ccxml – Set as Default

☞Right click NewTargetConfiguration.ccxml – Launch selected Configuration.

☞Right click Thread [main] (Disconnected (Unknown)) – Connect Target.

Note: Download the Code Composer Studio V4 in the following Link

http://processors.wiki.ti.com/index.php/Download_CCS

Screenshot to Select Emulator in CCS

1.Select Texas Instruments XDS100v1 USB Emulator  in Connection drop down menu  in the New Target Configuration  settings as shown in the below figure

Screenshot_to_Select_Emulator_in_CCS.PNG (463×322)
Fig 4.2 Screenshot to Select Emulator in CCS

2.In Device tab, Select Processor Details as TMS320F28027F and Click Save.

3.Right Click on New Target Configuration – Choose Launch Selected Configuration

Screenshot_to_launch_Selected_Configuration_in_CCS.PNG (491×299)
Fig 4.4 Screenshot to launch Selected Configuration in CCS
Status_Window_of_CCS_after_selected_configuration.PNG (529×350)
Fig 4.5 Status Window of CCS after selected configuration

4.Now Connect the LaunchPad C2000 Piccolo TMS320F28027F to the PC USB port  and drivers will be installed  automatically. To verify the connection status follow the below steps.

Right click My Computer icon and select Device Manager

Fig_4.6_Screenshot_of_Device_Manager.PNG (456×279)
Fig 4.6 Screenshot of Device Manager

Expand universal Serial Bus Controllers and Ports (COM & LPT) and verify as per the below screenshot.

Fig_4.7_Screenshot_to_verify_COM_ports.PNG (454×272)
Fig 4.7 Screenshot to verify COM ports

5.Click on Target – Select Connect Target as per the below screenshot

Screenshot_to_Connect_Target.PNG (476×322)
Fig 4.8 Screenshot to Connect Target
Status_Window_after_Target_is_connected_in_CCS.PNG (498×298)
Fig 4.9 Status Window after Target is connected in CCS

6.Click on Target – Select Load program

Fig_4.10_Screenshot_to_select_Load_Program.PNG (442×277)
Fig 4.10 Screenshot to select Load Program

7.Choose file path from Matlab file location (filename.out) and click OK

(E.g.) C:\Users\pansys011\Desktop\Single Phase SCR – HalfWave\Single Phase SCR_Hardware\SinglePhase_SCR_Hardware_ticcs\CustomMW

Fig_4.11_Screenshot_to_choose_the_path_of_the_output_file_generated_from_Matlab.PNG (453×319)
Fig 4.11 Screenshot to choose the path of the output file generated from Matlab
Fig_4.12_Status_window_of_CCS_loading_the_program.PNG (508×310)
Fig 4.12 Status window of CCS loading the program

8.Once the program is loaded ,In DebugRun the file

Fig_4.13_Screenshot_to_select_RUN_command.PNG (478×349)
Fig 4.13 Screenshot to select RUN command

9.Check the hardware Pins GPIO0, GPIO1, GPIO2, and GPIO3 with respect to ground for PWM Pulses.

10.To disconnect the Controller from debug mode, click on Target and Terminate All as show in the figure.

Fig_4.14_Screenshot_to_select_TERMINATE_command_in_CCS.PNG (456×411)
Fig 4.14 Screenshot to select TERMINATE command in CCS

11.Now Close CCSV4, Programming has been done successfully. 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.