AN2548 Freescale Semiconductor / Motorola, AN2548 Datasheet - Page 11

no-image

AN2548

Manufacturer Part Number
AN2548
Description
Serial Monitor Program for HCS12 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
$B5
$B6 — Erase_ALL
$B7 — Device_info
$B8 — Erase_Page
$B9 —
Erase_EEPROM
Command Error Codes
MOTOROLA
Command not supported. Range erasing is left to the user application.
B6 — Erase all of FLASH and EEPROM memory, preserving only the 2K
monitor area. The $E6 error code will be returned if the command does not
complete successfully.
B7/DC/IDID — Returns the constant $DC (Device C=12) and the 2-byte
HCS12 device ID register. Please refer to selected device guides for device ID
register contents.
B8 — Erase one page of FLASH memory selected by the current PPAGE
register. $E6 error code will be returned if the command does not complete
successfully. PPAGE must be preloaded with desired page to erase.
B9 — Erase all EEPROM memory. The $E9 error code will be returned if the
command does not complete successfully.
A 3-character prompt is issued after monitor initialization and after each
command is completed. A prompt is not issued after a GO command until a
breakpoint is encountered or a HALT command stops execution of the user
application program. The prompt consists of a 1-byte error code, a 1-byte
status code, and a “>” prompt symbol ($3E). After initialization or after a
command is executed successfully, the error code is $E0 indicating no error.
After a cold reset initialization, the status code is $00 indicating the monitor is
in active monitor mode waiting for additional commands from the host.
Therefore the complete 3-character prompt after a cold reset is $E0, $00, $3E.
Freescale Semiconductor, Inc.
For More Information On This Product,
Serial Monitor Program for HCS12 MCUs
Go to: www.freescale.com
Figure 2. Determining Cause of Monitor Reset
MONITOR RESET
WARMSTART
(BAD SP)
PROMPT
?
YES
NO
(COLD RESET)
GENERATE
longBreak
PROMPT
Command Error Codes
AN2548/D
11

Related parts for AN2548