Copyright © 2013 NEXCOM International Co., Ltd. All Rights Reserved.
VMD 3002 User Manual
21
Chapter 6: Table for MCU Protocol
Command 0x10: Erase Flash
Command 0x11: ReturnEraseFlash
Command 0x20: Read Program State
Direction: Host -> MCU
Direction: Host -> MCU
Direction: Host -> MCU
The Command has no extra data.
Data Structure
Length
Comment
Start address
2
The start address will be erased
Length
2
The length will be erased
Data Structure
Length
Comment
EraseState
1
0x00: Erase Fail
0x01: Erase OK
0x02: Erase Address Out of Range
0x03: Flash is Locked
Command 0x15: Return Read Flash
Direction: MCU -> Host
The MCU sends this command in response to the command “Command
0x14: ReadFlash” sent by the Host.
Data Structure
Length
Comment
Start address
2
The start address will be read
Program data
N
The program data N
Command 0x21: Return Program State
Direction: MCU -> Host
The MCU sends this command in response to the command “Command
0x21: ReturnProgramState” sent by the Soc.
Data Structure
Length
Comment
ProgramState
1
0x00: AP has not been updated yet.
0x01: AP has been updated.
0xFF: AP block data are mistake.
Command 0x24: Flash Unlock
Direction: Host -> MCU
Data Structure
Length
Comment
Password
7
Fixed Data as below:
“Nexcom”
Command 0x25: Return Flash State
Direction: MCU -> Host
The MCU sends this command in response to the command “Command
0x24: FlashUnlock”, “Command 0x10: EraseFlash”, “Command 0x12:
WriteFlash” or “Command 0x14: ReadFlash” sent by the Host.
Data Structure
Length
Comment
Flash State
1
0x00: Lock
0x01: Unlock
Command 0x30: Read BSL Info
Direction: Host -> MCU
The Command has no extra data.