AN2295 Freescale Semiconductor / Motorola, AN2295 Datasheet - Page 44

no-image

AN2295

Manufacturer Part Number
AN2295
Description
Developers Serial Bootloader for M68HC08 and HCS08 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
PC Bootloader Master Software
PC Bootloader Master Software
This section provides a detailed description of the bootloader host computer master software, which is
downloadable as a zip file from the Freescale Semiconductor website, http://www.freescale.com. All code
is written in C language and is compatible with Linux and Win32 platforms.
The bootloader specifications dictate that, as much as possible, intelligence is executed in the host
computer instead of by the MCU, minimizing MCU memory consumption. Only primitive functions are
implemented in the MCU.
In this section, portions of the master bootloader code will be described in more detail. All actions required
for reprogramming the HC(S)08 device are fully described in the slave implementation and protocol
sections of this document. The specific master characteristics are emphasized.
The host computer master software design is straight-forward and is a sequence of several steps (which
are shown in
44
1. Opening serial port
2. Opening source S19 file
3. Waiting for reset of MCU
4. Calibrating MCU
5. Reading MCU information
6. Remapping MCU interrupt vectors
7. Checking whether source S19 data fits into physical MCU memory
8. Erasing and programming MCU
9. Cleaning up, exiting program
Figure
29):
Developer’s Serial Bootloader for M68HC08 and HCS08 MCUs, Rev. 6
Freescale Semiconductor

Related parts for AN2295