ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
21 июля
374962 Топик полностью
VVB (11.12.2012 10:52, просмотров: 235) ответил VVB на Подскажите по USB Host для mass storage. LPC1768.
Для FatFS ограничение: используется только флэшка с одним разделом FAT. http://elm-chan.org/fsw/ff/en/filename.html#vol
Иначе: 1. требуется самому анализировать таблицу размещения, заполнять таблицу соответствия логических дисков и физических разделов 2. флэшка должна быть неудаляемой В принципе, ограничения не страшные. Это взято отсюда Correspondence between logical and physical drives The FatFs module has work areas that called file system object for each volume (logical drive). In default, each logical drive is bound to the physical drive that has same drive number. It attempts to mount a volume as SFD format and first FDISK partition. When _MULTI_PARTITION >= 1 is specified in configuration option, each individual logical drive is bound to any physical drive/partition. In this case, a volume management table must be defined by user. It is used to resolve relationship between logical drives and partitions as follows: Example: Logical drive 0-2 are assigned to three pri-partitions on the physical drive 0 (fixed disk) Logical drive 3 is assigned to physical drive 1 (removable disk) PARTITION VolToPart[] = { {0, 1}, /* Logical drive 0 ==> Physical drive 0, 1st partition */ {0, 2}, /* Logical drive 1 ==> Physical drive 0, 2nd partition */ {0, 3}, /* Logical drive 2 ==> Physical drive 0, 3rd partition */ {1, 0} /* Logical drive 3 ==> Physical drive 1 (auto detection) */ }; There are some considerations when use _MULTI_PARTITION configuration. Only four pri-partitions can be mounted. Extended partition is not supported. The physical drive that has two or more partitions must be non-removable class.