4 years, 11 months ago.  This question has been closed. Reason: Off Topic

SDBlockDevice (mbed-os 5.12.1) causes more resource?

Hello experts,

we're developing a prototype on K64F. The main functions are MQTT + SD read/write + Serial communication. The payload of the message to be published by MQTT is around 1k. Before it succeeded to run the program based on mbed-os 5.3.x + SDFileSystem (old FATFileSystem) library. (https://os.mbed.com/users/neilt6/code/SDFileSystem/) Now, we want to upgrade the whole project to mbed-os 5.12.x. After successfully compiled, the program crashed due to the stack overflow problem, which occurred everytime trying to write something in SD.

Also, the program failed to parse a config.ini file at the beginning of the process. Try to debug but not find a reason. After deaktivate an object instance, it succeeded to parse the file. Try to change the heap and stack size but no success.

Has anyone any idea, why this happens? More resource is needed to implement the SD functions in 5.12.x?

Best regards, YMZ

I tried to combine the SDFileSystem with the FATFileSystem original in 5.12.x, causing the same issue. It seems the problem as the new FATFileSystem.

posted by YM Z 18 Jun 2019