5.04.01 FLASHER ST7

© 2004 - 2012 Segger Microcontroller GmbH & CoKG
ASCII command interface to Flasher V2.00
Introduction
Since firmware version 1.84, Flasher 4, Flasher 4R1, Flasher 5 and Flasher ST7 support a simple
ASCII command interface via RS232.
This document describes the ASCII command interface of Flasher firmware version 2.00
Once set up using Flasher PC program, Flasher can be driven by any application or just a simple ter-
minal using ASCII commands.
Every known command is acknowledged by Flasher and then executed.
After command execution, Flasher sends an ASCII reply message.
If an unknown command is received, Flasher responds with #NACK
General command and reply message format
Any ASCII command has to start with the start delimiter #.
Any ASCII command has to end with simple carriage return (ASCII code 13)
Commands can be sent upper or lower case.
Reply messages from Flasher are sent back using the same format. All characters are upper case in
reply messages.
Communication port settings
Flasher is driven via RS232 serial port with the following interface settings:
8 data bits,
ODD parity
1 stop bit
at 115200 baud.
Commands to Flasher
The following commands are supported by current version of Flasher firmware:
#AUTO
The Auto command behaves exactly as the start button or external remote control input.
Flasher starts clearing target, if “automatic clear before program“ option was set.
Flasher programs target CPU
Flasher verifies target CPU
Flasher verifies its internal CRC to validate the programming operation.
Finally, Flasher responds with
#OK if no error occurred
#ERRxxx if any error occurred during operation. xxx represents the errorcode, normally replied to
Flasher PC program. The #ERRxxx message may be followed by an additional error text.
During execution of the AUTO command, Flasher automatically sends “status” messages via RS232
to reflect the state of execution. Typically during execution of #AUTO command, Flasher will reply the
following sequence of messages:
#ACK
#STATUS:START CMD
#STATUS:CONNECTING
#STATUS:CLEARING
#STATUS:WRITING
#STATUS:VERIFYING
#STATUS:VERIFY FLASHER CRC
#STATUS:READY
#OK
ASCII command interface to Flasher V2.00 Segger Microcontroller GmbH & CoKG
© 2004 – 2012 Segger Microcontroller GmbH & CoKG
#AUTO NOINFO
This command may be used instead of AUTO, if no status messages from Flasher should be sent
during execution.
The command ends with #OK or #ERRxxx
#BLANK
This command can be sent to perform a blank check over all selected target Flash sectors.
Flasher will reply the following sequence of messages:
#ACK
#STATUS:START CMD
#STATUS:CONNECTING
#STATUS:RESET
#STATUS:CONNECTING
#STATUS:BLANK CHECK
#STATUS:READY
#OK
in case of blank check failure, Flasher will respond with
#ERR004:BLANK CHECK FAILED.
#CLEAR
This command can be sent to clear all selected target Flash sectors.
Flasher will reply the following sequence of messages:
#ACK
#STATUS:START CMD
#STATUS:CONNECTING
#STATUS:RESET
#STATUS:CONNECTING
#STATUS:CLEARING
#STATUS:READY
#OK
in case of an erase failure, Flasher will respond with
#ERR001:ERASE FAILED.
or an other error message if any communication error occured.
#CLEARALL
This command can be used with Flasher ST7 to remove the read out protection of ST7 target CPUs.
The read out protection is removed and the whole target Flash area is erased.
#START
This command can be sent to release Flashers target interface. All signals from Flasher to target will
be set into high-Z mode, reset of target will be released. May be used to start target application pro-
gram.
Flasher will reply the following sequence of messages:
#ACK
#STATUS:START CMD
#STATUS:READY
#OK
#CRC
This command is useful to identify or verify Flashers internal data which should be programmed to
target CPU.
Flasher responds with the CRC of its current memory content:
#CRC:xxxx if data is present. xxxx is a 4 digit HEX number.
#CRC:---- if no valid data is present in Flashers memory
#STATUS
This command can be sent any time, even during other command execution. Flasher responds with its
current state. All defined state messages are described under “Flasher reply messages from Flasher”
later on in this manual.
ASCII command interface to Flasher V2.00 Segger Microcontroller GmbH & CoKG
© 2004 – 2012 Segger Microcontroller GmbH & CoKG
#PROGRAM
This command can used instead of #AUTO to program a target without final verification.
Whether the target is cleared before programming depends on options which were set during configu-
ration using the Flasher PC program.
#VERIFY
This command can used to verify the target Flash content against the data stored in Flasher.
#RESULT
This command can be sent any time, even during other command execution. Flasher responds with
the last result of a previous executed command, or the result of a running command.
#CANCEL
This command can be sent to abort a running program. It may take a while until the current program is
actually canceled.
Flasher will respond with
#ERR007:CANCELD.

5.04.01 FLASHER ST7

Mfr. #:
Manufacturer:
Description:
PROGRAMMING TOOL FOR ST7 MCU
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet