ETC TN210

Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
GRGZ Service Pack Software Addendum
In the GRGZ Service Pack for CodeWarrior Development Studio for HC08 Microcontrollers, Special
Edition Version 2.1.1, there are no GZ8 stationeries. To create a new project for the GZ8, follow the
steps outlined below.
Launch the CodeWarrior IDE
Create a new project for GZ8 starting from GZ16 stationery
From main menu bar, select File > New – New window appears
New Window
Page 1 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
Select HC08 Stationery
Enter a name for your project in Project Name text box
Click the OK button – New project Window appears
New Project Dialog Window
Click + to display the GZ Stationery
Click + to display the GZ16 stationery
If you want to create a project using Absolute Assembly, proceed to page 5
Select Assembly, C, C and Assembly, or C++ listed below GZ16
GZ16 stationery
Click the OK button
Page 2 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc.
Project (GZ8_Project.mcp) Window
You have successfully created a project for the GZ16
You must now change the memory mapping in the parameter file to use the GZ8 flash area
Click + to display the files in the Prm folder
The .prm File Selected
Double-click the .prm file for the target you’re using (default.prm in this case)
Page 3 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
Edit the ROM memory section for 8k flash instead of 16k flash
default.prm Before Editing
Change 0xC000 to 0xE000, which is the lower address of the flash area in the GZ8
default.prm After Editing
Save this file
You’re now ready to develop code for the GZ8
Page 4 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
Create a new absolute assembly project for GZ8 starting from GZ16 Stationery
Freescale Semiconductor, Inc...
Follow the steps on pages 1 and 2
Select Absolute Assembly listed below GZ16
GZ16 Absolute Assembly stationery
Click the OK button
Project (GZ8_Project.mcp) Window
You have successfully created an absolute assembly project for GZ16
You must now change the assembly source file ROM definition to use the GZ8 flash area
Page 5 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
Click + to display the files in the Sources folder
The .asm File Selected
Double-click the .asm file for the target you’re using (main.asm in this case)
Edit the definition of RomStart to reflect the lower address for the GZ8 flash
main.asm Before Editing
Page 6 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
Change “$C000” to “$E000”, which is the lower address of the flash area in the GZ8
main.asm After Editing
Save this file
You’re now ready to develop absolute assembly code for the GZ8
Page 7 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0
Freescale Semiconductor, Inc.
HOW TO REACH US:
USA/EUROPE/LOCATIONS NOT LISTED:
Metrowerks Technical Support
1-512-997-4700 option 3
(800) 377-5416 option 3
Motorola Literature Distribution
P.O. Box 5405, Denver, Colorado 80217
1-303-675-2140
(800) 441-2447
Freescale Semiconductor, Inc...
JAPAN:
Motorola Japan Ltd.
SPS, Technical Information Center
3-20-1, Minami-Azabu Minato-ku
Tokyo 106-8573 Japan
81-3-3440-3569
ASIA/PACIFIC:
Motorola Semiconductors H.K. Ltd.
Silicon Harbour Centre, 2 Dai King Street
Tai Po Industrial Estate, Tai Po, N.T., Hong Kong
852-26668334
TECHNICAL INFORMATION CENTER:
(800) 521-6274
WEB PAGES:
Software information
www.metrowerks.com
Metrowerks, the Metrowerks logo, and CodeWarrior are registered trademarks of
Metrowerks Corp. in the US and/or other countries. All other tradenames and
trademarks are the property of their respective owners.
Software Downloads
www.metrowerks.com/download
© Copyright. 2003. Metrowerks Corp. ALL RIGHTS RESERVED.
MCU Information
www.motorola.com/semiconductors
The reproduction and use of this document and related materials are
governed by a license agreement between Metrowerks Corp. and its
licensee. Consult that license agreement before use or reproduction of any
portion of this document. If you do not have a copy of the license
agreement, contact your Metrowerks representative or call 800-377-5416.
Metrowerks reserves the right to make changes to any product described or
referred to in this document without further notice. Metrowerks makes no
warranty, representation or guarantee regarding the merchantability or fitness of
its products for any particular purpose, nor does Metrowerks assume any liability
arising out of the application or use of any product described herein and
specifically disclaims any and all liability. Metrowerks software is not
authorized for and has not been designed, tested, manufactured, or
intended for use in developing applications where the failure, malfunction,
or any inaccuracy of the application carries a risk of death, serious bodily
injury, or damage to tangible property, including, but not limited to, use in
factory control systems, medical devices or facilities, nuclear facilities,
aircraft or automobile navigation or communication, emergency systems,
or other applications with a similar degree of potential hazard.
Documentation stored on electronic media may be printed for non-commercial
personal use only, in accordance with the license agreement related to the
product associated with the documentation. Subject to the foregoing noncommercial personal use, no portion of this documentation may be reproduced or
transmitted in any form or by any means, electronic or mechanical, without prior
written permission from Metrowerks.
USE OF ALL SOFTWARE, DOCUMENTATION AND RELATED MATERIALS
ARE SUBJECT TO THE METROWERKS END USER LICENSE AGREEMENT
FOR SUCH PRODUCT.
Page 8 of 8
For More Information On This Product,
Go to: www.freescale.com
Rev. 1.0