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