Skip to content

Commit 91141bb

Browse files
Matthew MacovskyKyle Kearney
authored andcommitted
Add missing debug prints to command functions
1 parent d330dee commit 91141bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_update_4byte_ext_addr_reg(bd_addr_t addr)
13831383
qspi_status_t QSPIFBlockDevice::_qspi_send_read_command(qspi_inst_t read_inst, void *buffer, bd_addr_t addr,
13841384
bd_size_t size)
13851385
{
1386+
tr_debug("Inst: 0x%xh, addr: %llu, size: %llu", read_inst, addr, size);
1387+
13861388
size_t buf_len = size;
13871389

13881390
qspi_status_t status = _qspi_update_4byte_ext_addr_reg(addr);
@@ -1422,6 +1424,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_read_command(qspi_inst_t read_inst, v
14221424
qspi_status_t QSPIFBlockDevice::_qspi_send_program_command(qspi_inst_t progInst, const void *buffer, bd_addr_t addr,
14231425
bd_size_t *size)
14241426
{
1427+
tr_debug("Inst: 0x%xh, addr: %llu, size: %llu", prog_inst, addr, *size);
14251428

14261429
qspi_status_t status = _qspi_update_4byte_ext_addr_reg(addr);
14271430
if (QSPI_STATUS_OK != status) {
@@ -1466,6 +1469,8 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_general_command(qspi_inst_t instructi
14661469
const char *tx_buffer,
14671470
mbed::bd_size_t tx_length, const char *rx_buffer, mbed::bd_size_t rx_length)
14681471
{
1472+
tr_debug("Inst: 0x%xh, addr: %llu, tx length: %llu, rx length: %llu", instruction, addr, tx_length, rx_length);
1473+
14691474
qspi_status_t status = _qspi_update_4byte_ext_addr_reg(addr);
14701475
if (QSPI_STATUS_OK != status) {
14711476
tr_error("QSPI Generic command - Updating 4-byte addressing extended address register failed");

0 commit comments

Comments
 (0)