spif icon indicating copy to clipboard operation
spif copied to clipboard

Library doesn't work flawlessly inside Mass Storage Class (MSC)

Open niosp opened this issue 1 year ago • 1 comments

Hi, using the library inside normal functions like main, everything works. But it can't be used within STORAGE_FS functions from the mass storage class provided by ST. Calling the function EraseSector ends up in an infinite delay, where the whole device becomes unresponsive. When trying to debug this behaviour, getting unresponsive starts when the function SPIF_WaitForWriting is being called. Also the main-Function Loop freezes when the function SPIF_WaitForWriting is reached.

Maybe someone experienced the same issue?

niosp avatar Jun 15 '24 15:06 niosp

hello. SPIF_WaitForWriting has timeout. Either way it should work. :(

nimaltd avatar Jun 16 '24 12:06 nimaltd