AN1909_D Freescale Semiconductor / Motorola, AN1909_D Datasheet

no-image

AN1909_D

Manufacturer Part Number
AN1909_D
Description
Multiple Target Features Using Code Warrior
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Semiconductor Application Note
Multiple Target Features
Using CodeWarrior
John Winters
1.
2.
© Motorola, Inc., 2001
MOTOROLA
One of the benefits of the Software Development Kit (SDK)
for Motorola’s Digital Signal Processor (DSP) family of
processors is its flexibility. The SDK provides Stationery
(templates) to address External RAM and Flash. However,
templates to address new product hardware may be required
and can be developed using tools in CodeWarrior. This
document details the steps required to create a new build
target.
There are two meanings for the term “target”, as used by
CodeWarrior:
A build target is a particular collection of settings and files
that determines the content of your code and the process in
which the code is compiled and linked into the final output.
A platform target is the processor or operating system for
which you are writing code, represented as the choice of
linker specified in the build target settings panel.
In this document, the term “target” refers to a build target.
This application note details how to create the new Stationery
and build target for a prototype product configuration,
possibly differing in software, hardware, or both, from the
Flash and the External RAM build targets supplied with
standard SDK build Stationery. The new build target, proto,
is in addition to the existing build targets defined in the
Stationery.
These are the tasks required to add multiple varied build
targets:
1. The Stationery must be expanded
Abstract
Introduction
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
1. Abstract ...........................................1
2. Introduction.....................................1
3. Expand Stationery ...........................2
4. Add a New Build Target .................3
5. Edit Prototype Build Target
6. Relate New Build Target to Project
7. Update the BuildAll Target to
8. Conclusion ....................................23
Settings ....................................12
Files..........................................19
Include the New Prototype
Target ......................................21
Contents
(Motorola Order Number)
Order by AN1909/D
Rev. 0, 03/2001

Related parts for AN1909_D

AN1909_D Summary of contents

Page 1

... The SDK provides Stationery (templates) to address External RAM and Flash. However, templates to address new product hardware may be required and can be developed using tools in CodeWarrior. This document details the steps required to create a new build target. There are two meanings for the term “target”, as used by ...

Page 2

Freescale Semiconductor, Inc. Expand Stationery 2. The new build target is added 3. The settings of the new build target are edited to differentiate it from the other build targets’settings evolves separately as development of the prototype progresses ...

Page 3

Freescale Semiconductor, Inc. Figure 1. ER_and_FI_and_proto_Application w Copy the folder: ..nos\ER_and_Fl_and_proto_Application\configextram to: ..nos\ER_and_Fl_and_proto_Application\configproto This procedure provides the proto application an identical configuration to the External RAM build target settings. The new proto build target settings will be changed as required ...

Page 4

Freescale Semiconductor, Inc. Add a New Build Target w Create a folder on the desktop to house this demonstration project creation and name it an_app w Using the Windows Start button, launch CodeWarrior through the Motorola Embedded SDK tree w ...

Page 5

Freescale Semiconductor, Inc. Figure 5. Name the New Project w Name the project file one, as shown in w Click the Open button; the file name becomes the project name. See Figure 6. Project Name Appears The project name and ...

Page 6

Freescale Semiconductor, Inc. Add a New Build Target Figure 7. Select Stationery Created Earlier in the Paper w Click the newly-created Stationery, illustrated in w Click OK in the New Project screen. A new project window, one.mcp, will appear, displaying ...

Page 7

Freescale Semiconductor, Inc. To see other possible build targets defined: w Open the Target pop-up menu, as illustrated in Note: There is no build target yet defined for proto; other build targets are Flash and BuildAll. w BuildAll creates both ...

Page 8

Freescale Semiconductor, Inc. Add a New Build Target To generate the proto build target, follow the procedure in the CodeWarrior Help Section “Create Targets” this: w Click the Targets tab of the one.mcp screen; see Figure 10. Targets ...

Page 9

Freescale Semiconductor, Inc. Targets will appear toward the right in the screen. Under the CodeWarrior Project pull-down menu, w Click Create New Target; see Figure 11 Figure 11. Create a New Build Target Multiple Target Features Using CodeWarrior For More ...

Page 10

Freescale Semiconductor, Inc. Add a New Build Target When a new build target is requested, CodeWarrior provides a pop-up box, called New Target, with a field for the build target’s name. existing target, External RAM cloned. New projects ...

Page 11

Freescale Semiconductor, Inc. To clone a new target from the External RAM target, type the new build target’s name, proto, in the Name for new target field in the New Target box and click Clone existing target. See proto target ...

Page 12

Freescale Semiconductor, Inc. Edit Prototype Build Target Settings 5. Edit Prototype Build Target Settings To edit the settings for the new build target, proto the one.mcp screen, select proto under Targets w A new choice, proto Settings, appears ...

Page 13

Freescale Semiconductor, Inc. w When the box proto Settings appears, shown in Settings Panels and click the desired access path Figure 16. proto Settings Box Multiple Target Features Using CodeWarrior For More Information On This Product, Edit Prototype Build Target ...

Page 14

Freescale Semiconductor, Inc. Edit Prototype Build Target Settings Use the new configuration files from the new portion of the project Stationery created earlier for the prototype build target. Refer to Note: The selected new build target is indicated in the ...

Page 15

Freescale Semiconductor, Inc. Figure 18. {Project} configproto Before Move Multiple Target Features Using CodeWarrior For More Information On This Product, Go to: www.freescale.com Edit Prototype Build Target Settings 15 ...

Page 16

Freescale Semiconductor, Inc. Edit Prototype Build Target Settings w Drag and drop the {Project}configproto to the top of the list under Access Path, illustrated in Figure 19. Figure 19. {Project} configproto After Move 16 Multiple Target Features Using CodeWarrior For ...

Page 17

Freescale Semiconductor, Inc. w Click M56800 Target and overwrite the External RAM elf file name. The Output File Name, as shown in Figure 20, must be changed from ExtRam.elf. Figure 20. Proto Settings Output File Name Before Name Change Multiple ...

Page 18

Freescale Semiconductor, Inc. Edit Prototype Build Target Settings w Rename the file proto.elf; refer to Figure 21. proto Settings Output File Name After Name Change w Click Save to save the settings for proto Compare Figure 20 and Figure The ...

Page 19

Freescale Semiconductor, Inc. 6. Relate New Build Target to Project Files The Files tab under the one.mcp screen now has three files and three copies of the configuration files, instead of two. One of the new sets is for the ...

Page 20

Freescale Semiconductor, Inc. Relate New Build Target to Project Files This step uses the Windows Explorer program to identify the location of the file; see Figure 23. Select appconfig.h File proto Will Use 20 Multiple Target Features Using CodeWarrior For ...

Page 21

Freescale Semiconductor, Inc. illustrates the full path to the sought file. Figure 24 The files appconfig.c, appconfig.h and linker.cmd are present in this folder. All files may be customized for the prototype without affecting the other targets, External RAM or ...

Page 22

Freescale Semiconductor, Inc. Update the BuildAll Target to Include the New Prototype Target Figure 25. Before Adding proto to BuildAll Target Figure 26. After Adding proto to BuildAll Target To order the files: w Drag and drop the files, placing ...

Page 23

Freescale Semiconductor, Inc. Figure 27. Files Arranged in Desired Order 8. Conclusion A single CodeWarrior project can support a growing family of products. Project Stationery may be enhanced and multiple additional targets may be built to support permutations of hardware ...

Page 24

Freescale Semiconductor, Inc. TM OnCE is a registered trademark of Motorola, Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for ...

Related keywords