Format USB-Stick

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

Format USB-Stick

1,129件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ben Sch on Tue Feb 09 07:42:56 MST 2016
Hi there,

i´m not into the whole USB topic yet and i wonder if it is possible to format the USB-Stick when using the LPC1853 as an USB-Host?
Is there maybe a function in some LPC USB libraries?

Thx and greetings
Ben
ラベル(1)
  • USB

0 件の賞賛
返信
2 返答(返信)

1,080件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by iemc on Thu Apr 28 07:37:53 MST 2016
If you are using LPCOpen there is f_mkfs which makes an empty file system (formats).

It is defined in ff.h

To use it you will also need to change the following lines in ffconf.h

#define_USE_MKFS0/* 0:Disable or 1:Enable */
/* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */


Change 0 to 1 to enable f_mkfs.

I have not tried this myself so I have no idea if it actually will work.
0 件の賞賛
返信

1,080件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ben Sch on Wed Feb 24 03:47:36 MST 2016
Hello,

Can no-one help me with this topic?

Thx and greetings
Ben
0 件の賞賛
返信