This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM5726: FATFS on RAMdisk example

Part Number: AM5726
Other Parts Discussed in Thread: SYSBIOS,

Tool/software: TI-RTOS

Hi everybody , 

I would like to work with RAM disk – I didn’t find any API reference for that in C:\ti\pdk_am57xx_1_0_9\packages\ti\fs\fatfs\docs.

could you help me ? 

any example of RAMdisk I can reuse ?

regards

Carlo

  • The RTOS team have been notified. They will respond here.
  • Hi Eric ,
    thank you
    please I need something differnet , I need to use RAMDISK in RAM : how can I take benift from previous examples ?
    FYI I founf on previous SYSBIOS on processors.wiki.ti.com/.../BIOS FATFS on Ram , but I cannot find it in TIrtos .
    can you help me ?
    thank you
    regards
    Carlo
  • Part Number: AM5726

    Tool/software: TI-RTOS

    Hi Everybody , 

    we would like to link between the FAT FS for TI RTOS file API to the std file API.

    The STD file API, like fopen, fwrite, fread, have the file descriptor argument as integer.

    In contrast, FAT FS of TI RTOS API, have an object as a file descriptor.

    we need   to find  a simple  way of how to convert from one to each other and back , to make programming easy :  any idea / suggestion ? 

    thank you 

    regrads

    Carlo

  • Part Number: AM5726

    Tool/software: TI-RTOS

    Hi Everybody , 

    we would like to link between the FAT FS for TI RTOS file API to the std file API.

    The STD file API, like fopen, fwrite, fread, have the file descriptor argument as integer.

    In contrast, FAT FS of TI RTOS API, have an object as a file descriptor.

    we need   to find  a simple  way of how to convert from one to each other and back , to make programming easy :  any idea / suggestion ? 

    thank you 

    regrads

    Carlo

     

  • Carlo,

    FYI I founf on previous SYSBIOS on processors.wiki.ti.com/.../BIOS FATFS on Ram=========>this is the RAM disk inside the RAM in the SYSBIOS. When you powered the SOC off, the content got lost. When you power it on, a portion of the RAM (e.g. DDR) can be used as RAMDisk. Is this customer looking for? If yes, I can try the SYSBIOS if it is working.

    Then for the TI RTOS FATFS, it was on top of the USB or MMCSD. This has not the RAMDisk customer required. In the FATFS, the file operation like f_open, f_close is accessed via API like:

    FRESULT f_open (FIL* fp, const TCHAR* path, BYTE mode); /* Open or create a file */
    FRESULT f_close (FIL* fp); /* Close an open file object */
    FRESULT f_read (FIL* fp, void* buff, UINT btr, UINT* br); /* Read data from a file */
    FRESULT f_write (FIL* fp, const void* buff, UINT btw, UINT* bw); /* Write data to a file */

    This used a standard file descriptor.

    For the TI MMCSD FATFS, for example, FSShellAppUtilsCmdCat(), this also calls standard f_open/f_read/f_write ... etc. Can customer use those examples to avoid the "way of how to convert from one to each other and back"?

    Regards, Eric
  • Carlo,

    Is customer still looking for this RAMDisk? I knew they are testing FATFS + MMCSD.

    Regards, Eric
  • Hi Eric ,
    yes , still looking since needing more than one disk
    what they need is to be able to use the same TI RTOS FATFS interface with MMCSD and RAM disk.
    they would also like to know how the TI RTOS FATFS accesses different disk over the same API?
    How can they mount one disk to be SD card and another one RAM disk?
    the index parameter should be the to indicate the disk ID am I right ? so how could I map a RAM disk into the FATFSConfigList object.

    thank you
    regards
    Carlo

  • Carlo,

    I am closing this E2E thread as we discussed during the RAMDisk support on TI P-SDK during the customer visit, this is not available at this moment and this is a new feature. TI is discussing internally and will allocate resource to implement this.

    Regards, Eric