Format USB-Stick

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Format USB-Stick

546 Views
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
Labels (1)
0 Kudos
2 Replies

497 Views
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 Kudos

497 Views
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 Kudos