mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #98 from RobMeades/master
Make the test for success when programming single blocks the same as …pull/7774/head
commit
f1bb57ae79
|
|
@ -444,7 +444,7 @@ int SDBlockDevice::program(const void *b, bd_addr_t addr, bd_size_t size)
|
||||||
response = _write(buffer, SPI_START_BLOCK, _block_size);
|
response = _write(buffer, SPI_START_BLOCK, _block_size);
|
||||||
|
|
||||||
// Only CRC and general write error are communicated via response token
|
// Only CRC and general write error are communicated via response token
|
||||||
if ((response == SPI_DATA_CRC_ERROR) || (response == SPI_DATA_WRITE_ERROR)) {
|
if (response != SPI_DATA_ACCEPTED) {
|
||||||
debug_if(SD_DBG, "Single Block Write failed: 0x%x \n", response);
|
debug_if(SD_DBG, "Single Block Write failed: 0x%x \n", response);
|
||||||
status = SD_BLOCK_DEVICE_ERROR_WRITE;
|
status = SD_BLOCK_DEVICE_ERROR_WRITE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"SPI_CLK": "NC",
|
"SPI_CLK": "NC",
|
||||||
"DEVICE_SPI": 1,
|
"DEVICE_SPI": 1,
|
||||||
"FSFAT_SDCARD_INSTALLED": 1,
|
"FSFAT_SDCARD_INSTALLED": 1,
|
||||||
"CMD_TIMEOUT": 5000,
|
"CMD_TIMEOUT": 10000,
|
||||||
"CMD0_IDLE_STATE_RETRIES": 5,
|
"CMD0_IDLE_STATE_RETRIES": 5,
|
||||||
"SD_INIT_FREQUENCY": 100000
|
"SD_INIT_FREQUENCY": 100000
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue