0624.an XXX CCSv5 For The DM3730 and AM3703 HelloWorld Example - Preliminary
0624.an XXX CCSv5 For The DM3730 and AM3703 HelloWorld Example - Preliminary
0624.an XXX CCSv5 For The DM3730 and AM3703 HelloWorld Example - Preliminary
This document contains valuable proprietary and confidential information and the attached file contains source code, ideas, and
techniques that are owned by Logic PD, Inc. (collectively Logic PDs Proprietary Information). Logic PDs Proprietary Information
may not be used by or disclosed to any third party except under written license from Logic PD, Inc.
Logic PD, Inc. makes no representation or warranties of any nature or kind regarding Logic PDs Proprietary Information or any
products offered by Logic PD, Inc. Logic PDs Proprietary Information is disclosed herein pursuant and subject to the terms and
conditions of a duly executed license or agreement to purchase or lease equipment. The only warranties made by Logic PD, Inc., if
any, with respect to any products described in this document are set forth in such license or agreement. Logic PD, Inc. shall have no
liability of any kind, express or implied, arising out of the use of the Information in this document, including direct, indirect, special or
consequential damages.
Logic PD, Inc. may have patents, patent applications, trademarks, copyrights, trade secrets, or other intellectual property rights
pertaining to Logic PDs Proprietary Information and products described in this document (collectively Logic PDs Intellectual
Property). Except as expressly provided in any written license or agreement from Logic PD, Inc., this document and the information
contained therein does not create any license to Logic PDs Intellectual Property.
The Information contained herein is subject to change without notice. Revisions may be issued regarding changes and/or additions.
Copyright 2012, Logic PD, Inc. All Rights Reserved.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
Revision History
REV
EDITOR
DESCRIPTION
JO
-Initial Release
PN 1021277A
APPROVAL
DATE
ii
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
Table of Contents
1
2
1.
3
4
Introduction ........................................................................................................................................... 1
Creating a Sample Hello World Application in CCSv5 for the DM3730 ....................................... 1
In the Basic Tab, Locate and check the DM3730 box. ...................................................................... 4
Creating a Sample Hello World Application in CCSv5 for the AM3703 ....................................... 9
Troubleshooting ................................................................................................................................. 16
PN 1021277A
iii
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
Introduction
The purpose of this document is to show how to create a sample Hello World project in Code
Composer Studios (CCS) v5 for both the DM3730 and the AM3703 modules using the XDS100v2
emulator. To create the sample project for the DM3730 proceed to Section 2, and for the
AM3703 continue to Section 3.
3. Close the TI Explorer page and create a new project, in the CCS Edit perspective, by
navigating to File > New > CCS Project
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
4. In the create project page, choose the settings that best match your configuration and
click Finish. An example of one possible configuration is shown below.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
5. Add the DM3730.cmd file downloaded in Section 2.1.3 of this document by right clicking
on [Project Name] > add files as shown below. Find your linker file, click Open, and
choose the option to copy it into the workspace.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
2. Choose the advanced tab (shown below) and click on the Cortex_A8_0. Browse
to your folder that contains the GEL files (section 2.1.2) and choose amdm37x_cortexA.gel as shown below and click Save.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
7. Build the project by right clicking on [Project Name] > Build Project
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
8. Now we want to launch the target configuration. To do this, navigate to View > Target
Configurations as shown below.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
11. Connect to the ARM core by right-clicking on Texas Instruments XDS100v2 USB
Emulator/Cortex_A8_0 as shown below.
12. Run a script to wake up the DSP by navigating to Scripts > IVA2200_Startup >
IVA22_GEM_startup as shown below.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
13. Now connect to the DSP the same way you connected to the ARM as shown below.
14. Download the program onto the DSP by navigating to Run > Load > Load Program as
shown below.
15. Choose Browse Project and select the HelloWorld.out file. Click OK twice.
16. Now run the program. You should see [C64XP_0] Hello World! in the console window.
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
3. Close the TI Explorer page and create a new project, in the CCS Edit perspective, by
navigating to File > New > CCS Project
PN 1021277A
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
4. In the create project page, choose the settings that best match your configuration and
click Finish. An example of one possible configuration is shown below.
5. Add the DM3730.cmd file downloaded in Section 3.1.3 of this document by right clicking
on [Project Name] > add files as shown below. Find your linker file, click Open, and
choose the option to copy it into the workspace.
PN 1021277A
10
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
6. Edit your target configuration file by double clicking on AM3703.ccxml. Choose the
advanced section (shown below) and click on the Cortex_A8_0. Browse to your folder
that contains the GEL files (section 2.1.2) and choose am-dm37x_cortexA.gel as shown
below and click Save.
PN 1021277A
11
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
PN 1021277A
12
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
7. Change the endianness of the project by right clicking on [Project Name] > Properties. In
the General tab, change the endianness to little as shown below and click OK.
8. Build the project by right clicking on [Project Name] > Build Project
PN 1021277A
13
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
9. Now we want to launch the target configuration. To do this, navigate to View > Target
Configurations as shown below.
PN 1021277A
14
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
12. Connect to the ARM core by right-clicking on Texas Instruments XDS100v2 USB
Emulator/Cortex_A8_0 as shown below.
13. Download the program onto the ARM by navigating to Run > Load > Load Program as
shown below.
14. Choose Browse Project and select the HelloWorld.out file. Click OK twice.
15. Now run the program. You should see [Cortex_A8_0] Hello World! in the console
window.
PN 1021277A
15
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
Troubleshooting
This section shows what the correct output of the console should be when connecting to the
DM3730 and the AM3703.
The DM3730 console:
PN 1021277A
16
AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703
Cortex_A8_0:
Cortex_A8_0:
Cortex_A8_0:
Cortex_A8_0:
Cortex_A8_0:
Cortex_A8_0:
Cortex_A8_0:
GEL
GEL
GEL
GEL
GEL
GEL
GEL
PN 1021277A
ETM_ID = 0x410CF236
17