...
API Function | Description | Comments |
| ||
Mount filesystem specifed specified by path | Pass | |
| ||
Open file | ||
| ||
Close file | ||
| ||
Read file | ||
| ||
Write file | ||
| ||
Open a directory to read its content | ||
| ||
Create a directory | ||
| ||
Delete an existing file or directory |
The full description of the FAT file system API and data structures can be found in Middlewares/Third_Party/FatFs/Src/ff.h
in the project source code directory.
...
The FreeRTOS application implements the following USB Host mode related CLI command::
Command | Description | Comments |
| Print content of the top directory and its subdirectories |
3. Validating USB Host Mode Operation
...
Format a USB Flash partition to FAT. Make sure that the FAT partition is using the same code page as configured by the
_CODE_PAGE
parameter inProjects/STM32H7_SOM/Applications/FreeRTOS/freertos_stm32h750/Inc/ffconf.h
, e.g. fordosfstools
v4.2:Code Block $ sudo mkfs.fat --codepage=850 /dev/sdh1
Attach a USB Flash device with a formatted FAT partition to the OTG micro-USB connector of the STM32H7 BSB board.
Power up the board.
From the FreeRTOS CLI, run the usbfatls command and check that the list of the files in the FAT partition is printed to the serial console:
...