AnsweredAssumed Answered

FDM KL25Z USB4.11 USB MSD Device Disk Format Issue

Question asked by Nathan Zimmerman on Sep 2, 2013
Latest reply on Feb 9, 2015 by Mark Butcher

Hey all, I'm using the freescale freedom development board with the KL25 MCU. I'm also using CW10.4 & "Freescale USB Stack v4.1.1\ProcessorExpert\Examples\Device\MSD\USB_MSD_DEVICE_MKL25Z128_PEx" example project.


My end goal is to have a tiny formatible drive for users to place a small configuration .txt file. The example projects use 1kb(i upped to 2kb..) of ram as the USB MSD device capacity. When compiling in CW10.4/Windows 7 the device successfully enumerates as a mass storage device. However, W7 says the drive needs to be formatted and any of the default tools results in failure.


My question is, is the failure to format the disk a result of the example code being incomplete or is 2kb simply too small for a filesystem like fat12?



FYI here are some format attempts I tried via command line /DISKPART:


DISKPART> list volume


  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info

  ----------  ---  -----------  -----  ----------  -------  ---------  --------

  Volume 0     D                 DVD-ROM         0 B  No Media

  Volume 1     I                   DVD-ROM         0 B  No Media

  Volume 2     H                   DVD-ROM         0 B  No Media

  Volume 3     E                  System Rese  NTFS   Partition    100 MB  Healthy

  Volume 4     G                NTFS   Partition    465 GB  Healthy

  Volume 5     C                NTFS   Partition    111 GB  Healthy    System

  Volume 6     F                NTFS   Partition    465 GB  Healthy

Volume 7     J                RAW    Removable    2048 B  Healthy


DISKPART> select volume 7


Volume 7 is the selected volume.




DiskPart has encountered an error: The parameter is incorrect.

See the System Event Log for more information.


ISKPART> create partition primary


No usable free extent could be found. It may be that there is insufficient

free space to create a partition at the specified size and offset. Specify

different size and offset values or don't specify either to create the

maximum sized partition. It may be that the disk is partitioned using the MBR di


partitioning format and the disk contains either 4 primary partitions, (no

more partitions may be created), or 3 primary partitions and one extended

partition, (only logical drives may be created).


DISKPART> format fs=fat12


    0 percent completed


Virtual Disk Service error:

The file system is incompatible.