FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2017 Threads] I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.Posted by kevinbescom on March 21, 2017 Hi everyone.
I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.
In my information, FreeRTOS have provided FAT32 with FreeRTOS Source Code.
But it is only for RAM Media FAT32 not Flash Media FAT32.
How to implement FAT32 for Flash Media?
Thank advance.
Kevin
I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.Posted by rtel on March 21, 2017 Just as TCP code is generic, but must be ported to an Ethernet
controller, the FAT code is generic, but must be ported to the media
that is going to store the file file system. Information on how to do
this is provided on the following link:
http://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusFAT/Creatingafilesystemmedia_driver.html
I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.Posted by kevinbescom on July 5, 2017 Below is SD Disk API from FreeRTOS. Can i use below for USB Stick like "FF_USBDiskDetect() with just porting for reading, writing, IOMan Initializing and DISK IO "?
BaseTypet FFSDDiskDetect( FFDiskt *pxDisk );
FFDiskt *FFSDDiskInit( const char *pcName );
BaseTypet FFSDDiskReinit( FFDiskt *pxDisk );
BaseTypet FFSDDiskUnmount( FFDiskt *pDisk );
BaseTypet FFSDDiskMount( FFDiskt *pDisk );
BaseTypet FFSDDiskDelete( FFDiskt *pDisk );
BaseTypet FFSDDiskShowPartition( FFDiskt *pDisk );
void FFSDDiskFlush( FFDiskt *pDisk );
BaseTypet FFSDDiskFormat( FFDiskt *pxDisk, BaseTypet aPart );
BaseTypet FFSDDiskInserted( BaseTypet xDriveNr );
FFIOManagert *sddiskioman( FFDisk_t *pxDisk );
Thank you
Kevin.
I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.Posted by rtel on July 5, 2017 I'm not sure I fully understand your question, but yes, you should be
able to port to USB storage. It may be a little trickier than most port
as you will need to start with a working USB stack with appropriate drivers.
I want to implement FAT32 on FreeRTOS for USB OTG USB Memory.Posted by heinbali01 on July 5, 2017 I think that the documentation pointed-out by Richard is quite complete.
But the most important functions to be implemented are:
~~~
static int32t prvFFRead( uint8t *pucBuffer, uint32t ulSectorNumber, uint32t ulSectorCount, FFDiskt *pxDisk );
static int32t prvFFWrite( uint8t *pucBuffer, uint32t ulSectorNumber, uint32t ulSectorCount, FFDiskt *pxDisk );
~~~
You'll bind the address of these functions to the so-called io-handler.
Note that these functions use sector numbers, not a byte offset.
For the other FF_SDDisk functions you can use the existing implementation in most cases.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|