AN2432 Freescale Semiconductor / Motorola, AN2432 Datasheet - Page 3

no-image

AN2432

Manufacturer Part Number
AN2432
Description
LIN Sample Application for the MC68HC908EY16 Evaluation Board
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
LIN Sample Application for the MC68HC908EY16 Evaluation Board
To develop LIN applications in “C”, Metrowerk’s Codewarrior is an appropriate
development environment. To use Codewarrior with this simple hardware set-
up, use the following procedure:
10. Code should now run. If the source code has not been changed then the
11. To develop new LIN applications the source code file LEDemo.c should
1. Copy folder “Lin08EY” from CD to an appropriate place on local hard
2. Launch Codewarrior from Start menu: Programs - Metrowerks -
3. From folder “Lin08EY” drag file:
4. Switch on the board and run the debugger by clicking on the green
5. In “Component” pull-down menu, select “Set target” and then “HC08”
6. If prompted by a window headed “Attempting to contact target and pass
7. Check “PEDebug” pull-down menu for “device” (EY16) and “mode” (In-
8. In “PEDebug” pull-down menu, select “load” and file “slave.abs” (in “bin”
9. Run program by clicking on green “GO” arrow.
Freescale Semiconductor, Inc.
For More Information On This Product,
drive.
CodeWarrior CW08_V2.1 - CodeWarrior IDE (Copy/paste a shortcut for
future use).
…\sample\ide\EYLEDemo\LEDemo.mcp into Codewarrior window.
arrow. Error messages relating to the limitations of the Codewarrior
license may appear, they will not reoccur as long as the rest of this
procedure is followed and the debugger is kept open.. If any compilation
or linking is required it will happen before the debugger starts up.
and “P&E Target Interface”. Press OK.
security”, select “Target Hardware Type” class III and click on “contact
target with these settings”. This window may also prompt for any monitor
mode security issues.
circuit debug/programming) and, if required, change to these settings.
directory). This will overwrite the code in FLASH with that contained in
“slave.abs” (select yes when prompted for permission to overwrite
FLASH).
LED LIN monitor described in this application note will now be running
and LED D4 flashing at 1HZ. To obtain full functionality, a LIN master
(e.g. the VCT (Volcano Communications Technologies) LINspector)
should be added.
be removed from the project and replaced with the new application
source file(s). This, and a procedure for creating a completely new
Codewarrior project, are described in detail in appendix I. Creation of a
new project allows development of a different application, with its own
LIN characteristics (message IDs etc.), without interfering with the
supplied demonstration application.
Go to: www.freescale.com
Use of the evaluation board without additional hardware
AN2432/D
3

Related parts for AN2432