9 years, 4 months ago.

SDFileSystem library causing device crash on/around fopen

We are using the SDFileSystem library on a Nucleo F401RE device over multiple threads. We are running into an error for which we can not pin down the cause. For certain calls to fopen, the device is freezing up. What is odd is other calls are working as usual with no problems. I'm sorry for the lack of information, but we are unable to identify non-trivial differences in the use of the function here.

Does anyone perhaps have any similar problems with the library? Would any additional information be helpful? Thanks.

You write " over multiple threads" . The SDFileSystem is based on the software from Chan .Did you check http://elm-chan.org/fsw/ff/en/appnote.html#reentrant

posted by Robert Spilleboudt 04 Dec 2014

Our software is set up to only perform file-system operations in a single thread context - and nowhere in ISRs. Is it possible that a context switch during disk operation could cause issue?

posted by Joshua Maravelias 05 Dec 2014
Be the first to answer this question.