From 8e087402374be5673476c69182f7811691e02d6f Mon Sep 17 00:00:00 2001 From: adustm Date: Thu, 22 Mar 2018 18:26:39 +0100 Subject: [PATCH] Fix Instruction with no data command Adding QSPI_DATA_NONE activates the transfer of the command inside HAL_QSPI_COMMAND function --- targets/TARGET_STM/qspi_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/TARGET_STM/qspi_api.c b/targets/TARGET_STM/qspi_api.c index 729a1d0f31..7764c98b93 100644 --- a/targets/TARGET_STM/qspi_api.c +++ b/targets/TARGET_STM/qspi_api.c @@ -262,6 +262,7 @@ qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, qspi_prepare_command(command, &st_command); st_command.NbData = 1; + st_command.DataMode = QSPI_DATA_NONE; /* Instruction only */ if (HAL_QSPI_Command(&obj->handle, &st_command, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) { status = QSPI_STATUS_ERROR; return status;