AN1909 Motorola / Freescale Semiconductor, AN1909 Datasheet

no-image

AN1909

Manufacturer Part Number
AN1909
Description
AN1909 Multiple Target Features Using Code Warrior
Manufacturer
Motorola / Freescale Semiconductor
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
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

AN1909 Summary of contents

Page 1

... Stationery. These are the tasks required to add multiple varied build targets: 1. The Stationery must be expanded © Motorola, Inc., 2001 Order by AN1909/D (Motorola Order Number) Rev. 0, 03/2001 Contents 1. Abstract ...........................................1 2. Introduction.....................................1 3. Expand Stationery ...........................2 4 ...

Page 2

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 4. The new ...

Page 3

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 in the configproto ...

Page 4

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 In Metrowerks’ CodeWarrior ...

Page 5

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 its location will ...

Page 6

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 one of the ...

Page 7

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 Flash and External ...

Page 8

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 The build targets shown are: • ...

Page 9

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 Add a New Build Target ...

Page 10

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 often evolve from ...

Page 11

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 will initially have ...

Page 12

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 in the Metrowerks’ ...

Page 13

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 Edit Prototype Build Target Settings Figure 16, select Target Settings from the Target ...

Page 14

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 one.mcp screen as ...

Page 15

Figure 18. {Project} configproto Before Move Multiple Target Features Using CodeWarrior Edit Prototype Build Target Settings 15 ...

Page 16

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

Page 17

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 Target Features Using ...

Page 18

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 new proto target ...

Page 19

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 new target, proto. ...

Page 20

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 Figure 23. ...

Page 21

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 Flash. 7. Update ...

Page 22

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 them in a ...

Page 23

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 and product features ...

Page 24

... ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd.; Silicon Harbour Centre, 2 Dai King Street, Tai Po Industrial Estate, Tao Po, N.T., Hong Kong. 852-26668334 Technical Information Center: 1-800-521-6274 HOME PAGE: http://motorola.com/semiconductors/dsp M are registered trademarks of Motorola, Inc. Motorola, Inc Equal MOTOROLA HOME PAGE: http://motorola.com/semiconductors/ AN1909/D ...

Related keywords