AN2432 Freescale Semiconductor / Motorola, AN2432 Datasheet - Page 17

no-image

AN2432

Manufacturer Part Number
AN2432
Description
LIN Sample Application for the MC68HC908EY16 Evaluation Board
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix I – Codewarrior LIN project cloning
MOTOROLA
LIN Sample Application for the MC68HC908EY16 Evaluation Board
The easiest way to generate an MC68HC908EY16 LIN Codewarrior project is
to “clone” the example application included on the CD. This automatically
ensures that the compiling, linking and building process is configured correctly.
An appropriate procedure is shown below.
10. The file hc08ey16.prm will have been copied to
11. In cloned projects, compiler macros are set up to use slave.cfg in place
1. In the directory …\lin08EY\sample, make an additional copy of the folder
2. Delete the LEDemo.c source file from the new folder
3. In the directory …\lin08EY\sample\ide, make an additional copy of the
4. Rename the file …\lin08EY\sample\ide\LINnode\LEDemo.mcp to
5. Launch Codewarrior, close any open projects and drag in the file
6. Remove LEDemo.c from the project by selecting the file (in files folder)
7. Add the required source file(s) to the project by selecting “Add Files”
8. Use the LIN08 slave settings (leftmost) icon to select “target – access
9. If any additional include files are required they should be added to folder
Freescale Semiconductor, Inc.
For More Information On This Product,
EYLEDemo and give it an appropriate name (e.g. LINnode).
…\lin08EY\sample\LINnode and add the application source file(s).
folder EYLEDemo and give it the same name as that used in step 1.
LINnode.mcp.
…\lin08EY\sample\ideLINnode LINnode.mcp.
and deleting it using the “Edit” pull-down menu.
from the “project” pull-down menu. Browse for the file(s), select and click
on “add”. Typically the single file …\lin08EY\sample\LINnode\LINnode.c
is required. If the added file appears in an inappropriate position in the
list of project files it can be dragged into the source folder.
paths”. Remove path (Project)..\..\EYLEDdemo to ensure that it isn’t
inadvertently accessed. The path (Project)..\..LINnode is required but
should already have been added automatically.
…\lin08EY\inc. Include files can optionally be added to the project as
described above for source files.
…\lin08EY\sample\ide\LINnode\hc08ey16.prm. and this file should be
inspected and edited or replaced as necessary. Sometimes no
modification will be necessary.
of lincfg.h and slave.id in place of linmsgid.h (see reference [2]).
slave.cfg and slave.id will have been copied into
…\lin08EY\sample\LINnode and should be inspected and edited if
changes are required. In particular slave.id should be modified to specify
the appropriate IDs and slave.cfg should be modified to enter the
appropriate values for the baud rate and the bus timeout. The slave.cfg
Go to: www.freescale.com
Appendix I – Codewarrior LIN project cloning
AN2432/D
17

Related parts for AN2432