65
8.29 Unlock UNLOCK
Format:
UNLOCK [SecurityBytes]
Use the unlock command to send the eight security bytes to unlock FLASH memory. 'SecurityBytes'
is an optional string of eight bytes in hexadecimal notation; if omitted, the command will send the
current security bytes nominated in Settings>Security Bytes (page 38). The format of the security byte
string is unimportant; Xplor8 strips out spaces before sending, so the following are the same:
Unlock F895FFFFF895F895
UNLOCK F8 95 ff FF f895 f895
When the bytes are sent, confirmation appears in the output window thus:
Unlocking bytes echoed: F895 FFFF F895 F895
These are the bytes as echoed by the MCU monitor-entry firmware.
If the command succeeds, the following message will appear in the output window, and the second
panel of the status bar will read 'FLASH unlocked':
Success! FLASH unlocked.
If the command fails, a message similar to the following will appear in the output window, and the
status panel will read: 'FLASH locked' (the address $0080 may change depending on the particular
MCU you are using):
Failure - bit 6 of $0080 not set
If the bytes are sent, but the MCU fails to respond by sending a 'break', then a time-out message will
appear. Have you remembered to power up the target board?. Some Windows COM port drivers
appear to have trouble recognizing the breaks issued by the MON08 firmware see Alternative 'Break'
Detection (page ).
This command is available when connected, i.e. when the COM port is open. The 'Unlock' button may
be used as a quick way of issuing this command - see Speedbuttons, page 19.
Comentarios a estos manuales