@@ -248,7 +248,8 @@ int QSPIFBlockDevice::init()
248
248
// Configure BUS Mode to 1_1_1 for all commands other than Read
249
249
if (QSPI_STATUS_OK != _qspi_configure_format (QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
250
250
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 0 )) {
251
- status = QSPIF_BD_ERROR_CONF_FORMAT_FAILED;
251
+ tr_error (" _qspi_configure_format failed" );
252
+ status = QSPIF_BD_ERROR_DEVICE_ERROR;
252
253
goto exit_point;
253
254
}
254
255
@@ -307,7 +308,8 @@ int QSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
307
308
// Configure Bus for Reading
308
309
if (QSPI_STATUS_OK != _qspi_configure_format (_inst_width, _address_width, _address_size, QSPI_CFG_BUS_SINGLE,
309
310
QSPI_CFG_ALT_SIZE_8, _data_width, _dummy_and_mode_cycles)) {
310
- return QSPIF_BD_ERROR_CONF_FORMAT_FAILED;
311
+ tr_error (" _qspi_configure_format failed" );
312
+ return QSPIF_BD_ERROR_DEVICE_ERROR;
311
313
}
312
314
313
315
if (QSPI_STATUS_OK != _qspi_send_read_command (_read_instruction, buffer, addr, size)) {
@@ -318,7 +320,8 @@ int QSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
318
320
// All commands other than Read use default 1-1-1 Bus mode (Program/Erase are constrained by flash memory performance less than that of the bus)
319
321
if (QSPI_STATUS_OK != _qspi_configure_format (QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
320
322
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 0 )) {
321
- return QSPIF_BD_ERROR_CONF_FORMAT_FAILED;
323
+ tr_error (" _qspi_configure_format failed" );
324
+ return QSPIF_BD_ERROR_DEVICE_ERROR;
322
325
}
323
326
324
327
_mutex.unlock ();
@@ -726,6 +729,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
726
729
// Set 1-1-1 bus mode for SFDP header parsing
727
730
if (QSPI_STATUS_OK != _qspi_configure_format (QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
728
731
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 8 )) {
732
+ tr_error (" _qspi_configure_format failed" );
729
733
return -1 ;
730
734
}
731
735
@@ -895,6 +899,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr)
895
899
// Configure BUS Mode to 1_1_1 for all commands other than Read
896
900
if (QSPI_STATUS_OK != _qspi_configure_format (QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
897
901
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 0 )) {
902
+ tr_error (" _qspi_configure_format failed" );
898
903
return -1 ;
899
904
}
900
905
@@ -1219,7 +1224,7 @@ int QSPIFBlockDevice::_enable_fast_mdoe()
1219
1224
if (QSPI_STATUS_OK != _qspi_configure_format (QSPI_CFG_BUS_SINGLE, QSPI_CFG_BUS_SINGLE, QSPI_CFG_ADDR_SIZE_24, QSPI_CFG_BUS_SINGLE,
1220
1225
QSPI_CFG_ALT_SIZE_8, QSPI_CFG_BUS_SINGLE, 0 )) {
1221
1226
tr_error (" _qspi_configure_format failed" );
1222
- return QSPIF_BD_ERROR_CONF_FORMAT_FAILED ;
1227
+ return QSPIF_BD_ERROR_DEVICE_ERROR ;
1223
1228
}
1224
1229
1225
1230
// Read Status Register
0 commit comments