omi icon indicating copy to clipboard operation
omi copied to clipboard

Firmware - dk2 - SDCard handling issue

Open 0xkelvin opened this issue 2 months ago • 2 comments

Describe the bug Current SDCard implementation is not able to handle read and write simultaneously( for example: 1 thread read only, 1 thread write only , filesystem will be failed)

Read only to avoid file corruption.

Image

0xkelvin avatar Nov 19 '25 02:11 0xkelvin

Could you guide me the progress to preproduce that issue ?

TuEmb avatar Nov 19 '25 02:11 TuEmb

It seems the issue is related to a partial issue in the implementation. When switching the file open mode to READ-ONLY, the problem appears. Image

It should always use READ-ONLY mode, because this code path only requires reading.

And another point: it seems there is a partial issue that was hidden by this unexpected behavior (closing the file twice?). Image

0xkelvin avatar Nov 23 '25 07:11 0xkelvin