AN2264 Motorola Semiconductor Products, AN2264 Datasheet - Page 14

no-image

AN2264

Manufacturer Part Number
AN2264
Description
Freescale Semiconductor, Inc.
Manufacturer
Motorola Semiconductor Products
Datasheet
AN2264/D
Appendix I — LIN driver project set-up
14
This application was developed on a Motorola MMDS development system
using the Metrowerks Codewarrior development environment. The easiest way
to generate an MC68HC908AZ60A LIN Codewarrior project is to “clone” the
example application included with the LIN drivers. This automatically ensures
that the compiling, linking and building process is configured correctly. An
appropriate procedure is shown below.
10. The LIN driver’s .prm file hc08az32.prm will have been copied to
1. In the LIN driver directory …\lin08\sample, make an additional copy of
2. Delete the slave.c source file from the new folder
3. In the LIN driver directory …\lin08\sample\ide, make an additional copy
4. Delete all files from
5. Launch Codewarrior, close any open projects and drag in the file
6. Remove slave.c from the project by selecting the file (in files folder) and
7. Add the required source file(s) to the project by selecting “Add Files”
8. Use the LIN slave settings (leftmost) icon to select “target – access
9. If any include files are required they should be added to folder
Freescale Semiconductor, Inc.
For More Information On This Product,
the folder slave and give it an appropriate name. In this application
temp08 was used.
…\lin08\sample\temp08 and add application source file(s).
of the folder slave and give it the same name as that used in step 1.
…\lin08\sample\ide\temp08\slave_Data\LIN08_slave\objectCode and
…\lin08\sample\ide\temp08\bin. This is not essential but makes it easier
to see if the compiler and linker output files are being correctly
generated.
…\lin08\sample\ide\temp08\slave.mcp.
deleting it using the “Edit” pull-down menu.
from the “project” pull-down menu. Browse for the file(s), select and click
on “add”. In this application the single file
…\lin08\sample\temp08\tempaz was required. If the added file appears
in an inappropriate position in the list of project files it can be dragged to
a more suitable place.
paths”. Remove path (Project)..\..\slave to ensure that it isn’t
inadvertently accessed. The path (Project)..\..\temp08 is required but
should already have been added automatically.
…\lin08\inc. In this application, the file hc08az60.h (see appendix II) was
added. Include files can optionally be added to the project as described
above for source files.
…\lin08\sample\ide\temp08\hc08AZ32.prm. and this file should be
inspected and edited or replaced as necessary. In this application, no
modification was necessary.
LIN Node Temperature Display
Go to: www.freescale.com
MOTOROLA

Related parts for AN2264