EraseMem
Description
U3 and U6
The U3 and U6 uses flash memory that must be erased before writing. Command number 0x29 erases the entire user memory area. Command number 0x2C erases the entire calibration memory area. The EraseCal command has two extra constant bytes, to make it more difficult to call the function accidentally. Do not call this function while streaming.
UE9
The UE9 uses flash memory, so you must erase it before writing. The non-volatile Mem area is arranged in 16 blocks of 128 bytes each. Blocks 0-7 are used by LabJack Corporation to store calibration data, and blocks 8-15 are available to the user. The EraseMem function erases 1 Kbyte at a time (blocks 0-7 or blocks 8-15). There is no way to erase only a smaller area.
Command
U3 and U6
Byte |
|
0 | Checksum8 |
1 | 0xF8 |
2 | 0x00 ( 0x01 ) |
3 | 0x29 ( 0x2C ) |
4 | Checksum16 (LSB) |
5 | Checksum16 (MSB) |
(6) | (0x4C) |
(7) | (0x6C) |
UE9
Byte |
|
|
0 | Checksum8 |
|
1 | 0xF8 |
|
2 | 0x01 |
|
3 | 0x29 |
|
4 | Checksum16 (LSB) |
|
5 | Checksum16 (MSB) |
|
6 | EraseArea (LSB) |
|
|
| 0x00: Blocks 8-15 |
|
| 0x4C: Blocks 0-7 |
7 | EraseArea (MSB) |
|
|
| 0x00: Blocks 8-15 |
|
| 0x4A: Block 0-7 |
Response (U3/U6/UE9)
Byte |
|
0 | Checksum8 |
1 | 0xF8 |
2 | 0x01 |
3 | 0x29 ( 0x2C ) |
4 | Checksum16 (LSB) |
5 | Checksum16 (MSB) |
6 | Errorcode |
7 | 0x00 |