Code: |
AS + 108 |
Symbolic: |
bccFlashFormat |
This command will begin a format (erase) a flash of the connected device. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
FLAGS |
Operating flags: |
4 |
U16 |
DEVID |
Flash device ID |
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackIllegalArgs |
Illegal parameters |
U16 What flags: 1=Flags 2=Flash device ID |
nackReadOnly |
The flash (or the device itself) is read-only and cannot be erased. |
|
On success, a bccAck is received with no data. The format operation will begin as soon as possible: when operation normally end you will receive a bccCompleted message (with no data).
If operation is aborted from the device, you will receive a bccAborted.
Notes:
•Operation cannot be aborted by command, but only from remote.
•Both bccCompleted and bccAborted will have PID as request command PID.
During the operation you can optionally request the operation status by sending a bccCheck message (with no parameters): as DCH value you must use the SCH value from first bccAck message. It's bccAck answer will contain following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U8 |
PERC |
Operation progress (%) |
1 |
STRZ |
MSG |
Optional status message |