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.

TM4C123GH6PM: Data Logger using SD Card and File transfer to Pendrive

Part Number: TM4C123GH6PM

Hi there,

My project requirement is logging the data into the SD Card and transfer those files to pendrive. For SD Card I referred the SD Card example and for Pendrive I referred the USBMSC example. Both of them have same ff.c file but for disk related operations they have two different files namely USBMSC.c and MMC-DK-TM4C123G.c and both of them have same names. So compiler will give error such as "multiply defined xxxx" If I use both files in the same project.

Is there any example where I could get both of them working in the same project? or is there any common library?

  • Hi,

      Are you talking about those disk functions like disk_XXX()? Apparently, those functions were modified from the FafFS web site to create the fat_usbmsc.c and mmc-dk-tm4c123g.c at different times and they were never mixed together. You are free to modify them. Unfortunately, we don't have any examples that use both of them in the same project for which we would have caught the compilation issue. 

  • Hi Charles,

    Thank you for your quick response. I thought of an alternative to it. I'll be using SD Card in the spi mode for logging the data and file system for pendrive. Hope should work. I gave a thought for your suggestion for modifying the file system for my need, but it will take time for me to understand the file system. I don't have enough time for it.

    Thank you for your suggestion.

    Regards Alam.