Skip to content

Commit a2660ca

Browse files
adustm0xc0170
authored andcommitted
Fix Instruction with no data command
Adding QSPI_DATA_NONE activates the transfer of the command inside HAL_QSPI_COMMAND function
1 parent 071f9f0 commit a2660ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command,
262262
qspi_prepare_command(command, &st_command);
263263

264264
st_command.NbData = 1;
265+
st_command.DataMode = QSPI_DATA_NONE; /* Instruction only */
265266
if (HAL_QSPI_Command(&obj->handle, &st_command, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) {
266267
status = QSPI_STATUS_ERROR;
267268
return status;

0 commit comments

Comments
 (0)