Download Flash Magic Manual

Transcript
Flash Magic GUI and Command Line Manual
8.8 HEXFILE
Description:
Programs an Intel Hex file into the Flash memory.
Note that more than one instance of this directive is allowed on the
command line, however if a HEXFILE directive fills unused Flash then
any subsequent HEXFILE directives will fail as it will not be possible to
program the Flash and any previously programmed Hex File will be
corrupted.
More than one
allowed:
Yes
Type:
Operation
Syntax:
HEXFILE(path, checksums, fill, protectisp[, CODEREADPROTECTION])
Where:
The path to the Intel Hex File
Set to CHECKSUMS to generate checksums in the Flash
blocks used by the Hex File. Set to NOCHECKSUMS for
no checksums.
fill
Set to FILL to fill the unused Flash with the value 00H.
Set to NOFILL for no filling of the Flash.
protectisp
Set to PROTECTISP to stop the ISP code from being
corrupted in devices that contain the ISP code in the
main Flash memory. Set to NOPROTECTISP to allow the
ISP code to be corrupted. Ignored for other devices. It is
strongly recommended to set this option to
PROTECTISP.
CODEREADPROTECTION
Sets the code read protection on devices
that support it (LPC2xxx only)
path
checksums
Output:
Hex File programming complete (path)
Or: Hex File programming failed: reason (path)
Where:
path
reason
The path of the Intel Hex file as passed to the HEXFILE
directive.
The reason Hex File programming failed
Default:
No Hex file is programmed. Checksums are not generated. Unused
Flash memory is not filled.
Examples:
HEXFILE(test.hex, CHECKSUMS, NOFILL, PROTECTISP)
HEXFILE(..\test.hex, NOCHECKSUMS, FILL, PROTECTISP)
Page 62