Function SDC Write Sector
Jump to navigation
Jump to search
Prototype |
|
---|---|
Description |
Performs a single sector write (attempts a retry on fault). |
Parameters |
|
Returns |
Zero on success, error code on failure. |
Video Modes |
All |
Since |
V.5.x.x bootloaders |
The error codes returned by this function:
- 1: Card is not initialized
- 2: CMD24 failed
- 3: Timed out during waiting for completion (card should be reinitialized)
- 4: CRC error (SD card rejected the data due to bad CRC)
Note that this function can take a long time to complete (several frames).