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.

FatFs implementation for DK-TM4C129X on board flash.



Is there any implementation where Fatfs is ported to on board flash (Macronix ) of DK-TM4C129X .

  • Hello Vishal,

    Yes. The example

    D:\ti\TivaWare_C_Series-2.1.2.111\examples\boards\dk-tm4c129x\usb_dev_msc

    turns the Serial Flash into a FatFs enabled Mass Storage Class device.

    Regards
    Amit
  • Amit,

    This example is doing MSC only. Is there an example project doing FATFS for local Tiva file access like the FATFS  sdcard example?

    Thanks in advance.

    Pran

  • Hello Pran,

    The example does the same. Please check the readme

    "This example application turns the evaluation board into a USB mass storage class device. The application will use the onboard flash memory for the storage media for the mass storage device. The screen will display the current action occurring on the device ranging from disconnected, reading, writing and idle."

    Regards
    Amit
  • Not quite. The application I am looking for needs to do something like the SDCard example,(fatsd_DK_TM4C129X_TI_TivaTM4C129XNCZAD)  where from within the Tiva application I can open, read and write to files on the local storage device.

    The example you are referring to does not have local FATFs support.

    Right now the only option I have seen is to migrate serialFlash_FatFS_TM4C129_LP for the MX25 series flash in 129X development board.

    If I am mistaken, can you provide some additional information.

    Thanks

     

  • Hello Pran,

    OK, now I understand. I will suggest first formatting the on board flash memory (macronix flash) for Fat File System using the usb application. Once done, then you need to adapt sd card drivers to use Chip Select of the flash instead of the sd card. Then you would be able to reuse the on board flash for Fat File System. Not straight forward, but not too difficult.

    Regards
    Amit