NOTICE: This website will be shut down in the near future. Product content has moved to nxp.com. Forum content and FAQs have been moved to community.nxp.com. We encourage you to create a user account on nxp.com to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.

 

Format USB-Stick

2 replies [Last post]
Ben Sch
Offline
Joined: 2015-09-17
Posts: 4

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

0
Your rating: None

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ben Sch
Offline
Joined: 2015-09-17
Posts: 4

Hello,

Can no-one help me with this topic?

Thx and greetings
Ben

iemc
Offline
Joined: 2015-07-01
Posts: 8

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_MKFS		0	/* 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.

feedback