Hello,
I didn't find any example code for using FLEXSPI_TransferNonBlocking
SDK examples all use FLEXSPI_TransferBlocking.
Can someone point me to relevant example code for i.MXRT1050?
Thank you.
Hi
please refer to below code snippet.
-Initialize
FLEXSPI_Enable(((FLEXSPI_Type *)FLEXSPI_BASE), true);
FLEXSPI_GetDefaultConfig(&config);
FLEXSPI_Init(((FLEXSPI_Type *)FLEXSPI_BASE), &config);
flexspi_handle_t rc_handle;
flexspi_handle_t tr_handle;
FLEXSPI_TransferCreateHandle(((FLEXSPI_Type *)FLEXSPI_BASE), &tr_handle, NULL, 0
/*flexspi_transfer_callback_t callback,
void *userData*/);
FLEXSPI_TransferCreateHandle(((FLEXSPI_Type *)FLEXSPI_BASE), &rc_handle, NULL, 0
/*flexspi_transfer_callback_t callback,
void *userData*/);
-Read QSPI.
status = FLEXSPI_TransferNonBlocking(((FLEXSPI_Type *)FLEXSPI_BASE), &rc_handle, &rc_data);
while((status = FLEXSPI_TransferGetCount (((FLEXSPI_Type *)FLEXSPI_BASE), &rc_handle, &count )) == kStatus_FLEXSPI_Busy);
Regards
Daniel
dear daniel
please share the code snippet for QSPI write in NonBlocking transfer mode