Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists