Access Restricted
This page contains internal documentation that is not publicly available.
DHWCtrl.FlashWrite
Write len(Data) / sector_size sectors starting at Sector.
Firmware derives the sector count from the data length;
len(Data) % sector_size != 0 returns ErrFlashRange. For
NOR / write-once slots the target sectors must already
be in erased state; for eMMC / managed-flash slots the
write is unconditional.
Properties
- Command code: 0xE131
- Command timeout: 100 ms
- Possible status codes: General status codes, DHWCtrl.ErrInvalidIndex, DHWCtrl.ErrFlashRange, DHWCtrl.ErrFlashWrite, DHWCtrl.ErrHardware
Parameters (request frame)
| Name | Type/Size | Description |
|---|---|---|
| Index | Integer (8 bits) | Zero-based instance index within this peripheral category. The valid range is firmware / hardware-variant specific; discoverable via ListPeripherals. |
| Sector | Integer (32 bits) | Zero-based sector index within the slot. |
| Length of Data | Integer (16 bits) |
Length of Data in bytes |
| Data | Raw data | Sector contents to write. Length must be a multiple of the slot's sector_size; firmware derives the sector count as len(Data) / sector_size. |
Returned values (response frame)
None