2020-08-03 03:58 PM
Hi
I am using the STM32F723 to read FPGA with the (notorious) QSPI interface in a custom board.
The QSPI is configured to indirect read mode, 4 bits, using DMA.
The issue is that the first nibble is not read. All other bytes are as expected.
The Errata sheet, section 2.4.1 says “First nibble of data not written after a dummy phase�?. But I am using it in read mode with no dummy phase.
The workaround, adding alternate bytes, does not solve the issue.
Changing number of bytes read each time and clock speed also had no effect.
Is it possible that this issue manifest itself in other configurations? Did anyone here experience this?
TIA,
--Arnon
#QSPI #[STM32 MCUs]
2020-08-14 05:49 AM
Hi @Arnon,
In read mode, it is required to have at least one dummy cycle in order to switch the data signals from output mode to input mode.
This is what we say in the specification (See RM0431 page 350):
Please check this way and keep us informed if this resolves your issue or you still have problem.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2020-08-14 06:45 AM
Thank you @Amel NASRI for taking the time to reply.
The intermediate solution i did is changing the FPGA code so the first byte is sent twice. in each QSPI event, n bytes are read, the QSPI callback function copies only the last n-1 bytes. This obviously degrade the throughput (memcpy n bytes each time, additional byte is sent)
I can try the dummy cycle but i expect the same results as the alternate byte one.
Is there a better solution?
Does ST going to address this bug?
thanks,
--Arnon
2020-08-14 08:46 AM
>>Does ST going to address this bug?
I wouldn't expect ST to refresh the IP on the F7 designs.
The critical path here is that it works with QSPI NOR Flash in normal use-cases.
In these, the address needs time to decode, and data buffers prefetch, before read streaming the data.
2020-08-14 09:01 AM
thanks @Community member , I agree with your prediction.
Still, I wish the QSPI could be used as a simple, quad SPI...
--Arnon