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.
Tool/software:
I get the following error since it is showing redefinition of both my fatfs and ti rtos functions.
error #10056: symbol "disk_status" redefined: first defined in "./source/diskio.obj"; redefined in "C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs\lib\release\ti.mw.fatfs.aem4f<diskio.oem4f>"
error #10056: symbol "disk_read" redefined: first defined in "./source/diskio.obj"; redefined in "C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs\lib\release\ti.mw.fatfs.aem4f<diskio.oem4f>"
error #10056: symbol "disk_initialize" redefined: first defined in "./source/diskio.obj"; redefined in "C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs\lib\release\ti.mw.fatfs.aem4f<diskio.oem4f>"
error #10056: symbol "disk_ioctl" redefined: first defined in "./source/diskio.obj"; redefined in "C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs\lib\release\ti.mw.fatfs.aem4f<diskio.oem4f>"
error #10056: symbol "disk_write" redefined: first defined in "./source/diskio.obj"; redefined in "C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs\lib\release\ti.mw.fatfs.aem4f<diskio.oem4f>"
How to use my fatfs library in a RTSC project.
Hi,
I think you might have the ti.mw.fatfs.aem4f in your linker library search path.
There are TI-RTOS FatFs examples for Tiva. Please see below. I will suggest you use these examples for reference.
I dont knwo where it is included. I have looked the include options and arm linker search path. Can i delete fatfs folder in this path
C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs
Can i delete fatfs folder in this path
C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\mw\fatfs
Hi,
I don't think that will works but you can try. I suspect you may need to rebuild the TI-RTOS library to remove the fatfs that comes with it.
What is reason why you cannot use the fatfs drivers that is included with TI-RTOS? The open source FAT file system has been ported to run with the SYS/BIOS.
https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/673588/rtos-tm4c1294ncpdt-how-to-get-build-to-ignore-fatfs
As suggested in this post, Can you help me with rebuilding my ti rtos libraraies without fatfs files. I dont know how to do that.
HI,
Please refer to section A.3 and A.4 in SYS/BIOS user’s guide on how to rebuild the library. The user’s guide can be found at https://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sysbios/6_53_00_11/exports/bios_6_53_00_11/docs/Bios_User_Guide.pdf.
This below post also talks about how to rebuild the library.
You still have not answered me as to why you can use the open-source fatfs drivers that is included with TI-RTOS?
well did those open source implementation work with any low level implementation ie, diskio.c . I dont want spend some time on how to use this and solving issues that follow up.
Any how i solved the the issue of redefinition by defining the following lines of macro in the ff.c, diskio.c and diskio.h,
#define disk_initialize user_disk_initialize
#define disk_status user_disk_status
#define disk_read user_disk_read
#define disk_write user_disk_write
#define disk_ioctl user_disk_ioctl