© 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