Skip to content
Commit a3b44754 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

STM32, STM32 F7, and STM32 L4: Back out part of...

STM32, STM32 F7, and STM32 L4:  Back out part of 3331e9c4.  Returning immediately int he case of a NAK makes the Mass Storage Class driver unreliable.  The retry/timeout logic is necessary.  This implementation tries to implement a compromise:  If a NAK is received after some data is received, then the partial data received is returned as with 3331e9c4.  If if a NAK is received with no data, then no longer returns the NAK error immediately but retries until data is received or a timeout occurs.  Initial testing indicates that this fixes the issues the MSC.  However, I hae concerns that if multiple sectors are read in one transfer, there could be NAKs between sectors as well and, in that case, then change will still cause failures.
parent d49ea44d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment