Anda di halaman 1dari 20

Using CCSv5 for the DM3730 and AM3703

Hello World Example


Application Note XXX
Logic PD // Products
Published:

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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.

Creating a Sample Hello World Application in CCSv5 for the


DM3730
This section will describe the steps to Creating a Sample Hello World Application in CCSv5 for
the DM3730 using the XDS100v2 emulator.
1. Go to the following links and follow the directions next to the link:
1. Download the DaVinci (DMxxxx) v1.0.3 files from TIs website and follow the
directions under the section titled Usage.
2. Download the GEL files for the DM3730 from TIs website.
3. Download the DM3730 linker command file from TIs website.
2. Create a temporary workspace in CCSv5 called HelloWorld as shown below.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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 DM3730.ccxml.


1. In the Basic Tab, Locate and check the DM3730 box.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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.

9. Turn on the DM3730 Torpedo SOM kit.


10. Now navigate to your target configuration file in the target configuration window by
opening Projects > Hello World as shown below. Right click on the DM3730.ccxml file
and choose Launch Selected configuration as shown below.

PN 1021277A

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703

Creating a Sample Hello World Application in CCSv5 for the


AM3703
This section will describe the steps to Creating a Sample Hello World Application in CCSv5 for
the AM3703 using the XDS100v2 emulator. The AM3703 will use many of the same files as the
DM3730.
1. Go to the following links and follow the directions next to the link:
1. Download the Sitara (AMxxxx) v1.0.3 files from TIs website and follow the
directions under the section titled Usage.
2. Download the GEL files for the DM3730 from TIs website.
3. Download the DM3730 linker command file from TIs website.
2. Create a temporary workspace in CCSv5 called HelloWorld as shown below.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

11

AN XXX Creating a Sample Hello World Application in CCSv5 for the DM3730 and AM3703

PN 1021277A

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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.

10. Turn on the AM3703 Torpedo SOM kit.


11. Now navigate to your target configuration file in the target configuration window by
opening Projects > Hello World as shown below. Right click on the DM3730.ccxml file
and choose Launch Selected configuration as shown below.

PN 1021277A

Logic PD, Inc. All Rights Reserved.

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

Logic PD, Inc. All Rights Reserved.

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:

Cortex_A8_0: GEL Output: OMAP 32K Watchdog Timer is disable


Cortex_A8_0: GEL Output: Putting DPLL into bypass before proceeding
Cortex_A8_0: GEL Output: Putting CORE DPLL into bypass before proceeding
Cortex_A8_0: GEL Output: Locking CORE DPLL
Cortex_A8_0: GEL Output: PRCM clock configuration IIA setup has been
completed
Cortex_A8_0: GEL Output: SystemClock = 26.0 MHz
Cortex_A8_0: GEL Output: DPLL_MULT_VALUE = 332
Cortex_A8_0: GEL Output: DPLL_DIV_VALUE = 25
Cortex_A8_0: GEL Output: CORE_DPLL_CLK = 664.0 MHz
Cortex_A8_0: GEL Output: CORE_CLK = 332.0 MHz
Cortex_A8_0: GEL Output: L3_CLK = 166.0 MHz
Cortex_A8_0: GEL Output: mDDR Hynix H8KDS0UN0MER - 2048 Mbit(256MB) on CS0,
16M x 32bit x 4Banks
Cortex_A8_0: GEL Output: Waiting for SDRC DLL to lock...
Cortex_A8_0: GEL Output: SDRC DLL successfully locked
Cortex_A8_0: GEL Output: common_sdram_init() completed
Cortex_A8_0: GEL Output: SDRC initilization for mDDR Hynix H8KDS0UN0MER
completed
Cortex_A8_0: GEL Output: 26MHz clock configuration IIa
Cortex_A8_0: GEL Output: 26MHz clock configuration IIa
Cortex_A8_0: GEL Output:
CORTEXA8_CORE_VERSION = 0x413FC082
Cortex_A8_0: GEL Output: Target contains version r3p2 of the CortexA8...
Cortex_A8_0: GEL Output:
Read the ETM_POWER_DOWN_STATUS register...
Cortex_A8_0: GEL Output:
ETM_POWER_DOWN_STATUS = 0x00000001
Cortex_A8_0: GEL Output:
ETM Access is enabled!
Cortex_A8_0: GEL Output:
ETM_ID = 0x410CF236
Cortex_A8_0: result: C64x+ release from reset
The AM3703 console:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
completed
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
16M x 32bit x 4Banks
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
Cortex_A8_0: GEL Output:
completed

PN 1021277A

OMAP 32K Watchdog Timer is disable


Putting DPLL into bypass before proceeding
Putting CORE DPLL into bypass before proceeding
Locking CORE DPLL
PRCM clock configuration IIA setup has been
SystemClock = 26.0 MHz
DPLL_MULT_VALUE = 332
DPLL_DIV_VALUE = 25
CORE_DPLL_CLK = 664.0 MHz
CORE_CLK = 332.0 MHz
L3_CLK = 166.0 MHz
mDDR Hynix H8KDS0UN0MER - 2048 Mbit(256MB) on CS0,
Waiting for SDRC DLL to lock...
SDRC DLL successfully locked
common_sdram_init() completed
SDRC initilization for mDDR Hynix H8KDS0UN0MER

Logic PD, Inc. All Rights Reserved.

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

Output: 26MHz clock configuration IIa


Output: 26MHz clock configuration IIa
Output:
CORTEXA8_CORE_VERSION = 0x413FC082
Output: Target contains version r3p2 of the CortexA8...
Output:
Read the ETM_POWER_DOWN_STATUS register...
Output:
ETM_POWER_DOWN_STATUS = 0x00000001
Output:
ETM Access is enabled!

Cortex_A8_0: GEL Output:

PN 1021277A

ETM_ID = 0x410CF236

Logic PD, Inc. All Rights Reserved.

17

Anda mungkin juga menyukai