Problems writing to two files on an SD card simultaneously

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problems writing to two files on an SD card simultaneously

ソリューションへジャンプ
609件の閲覧回数
ARQuattr
Contributor IV

We are testing writing to an SD card using the TWR-K60F120M board, running MQX4.1, with the HVAC demo and SD driver and MFS library included.  We can open a file and read from it, then open two more files in write mode, but it will only work with the first file that is written to.  Upon trying to write to the second file the task is blocked.  This is the same whether I use fprintf(), or write().  The file handles are not NULL, and it doesn't block when the files are open, only when written to some time later.  I doubled the stack size (to 10kB) and it didn't help.

Is there a limitation with accessing multiple files through MQX MFS, or are we doing something wrong?

Thanks

Angelo

ラベル(1)
タグ(4)
0 件の賞賛
返信
1 解決策
386件の閲覧回数
ARQuattr
Contributor IV

I added Kernel logging in the user_config to monitor the stack usage to confirm I was not running out of stack space, and after recompiling the PSP the file writing issue went away.  I'm pretty sure nothing was changed in the PSP before, but I'm not sure if perhaps the projects (i.e. MFS, PSP, BSP, etc.) were built in the wrong order.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
387件の閲覧回数
ARQuattr
Contributor IV

I added Kernel logging in the user_config to monitor the stack usage to confirm I was not running out of stack space, and after recompiling the PSP the file writing issue went away.  I'm pretty sure nothing was changed in the PSP before, but I'm not sure if perhaps the projects (i.e. MFS, PSP, BSP, etc.) were built in the wrong order.

0 件の賞賛
返信