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.

TMS320F28377S: Unrecognized/undefined driver for DISK0!

Part Number: TMS320F28377S
Other Parts Discussed in Thread: LM3S3748, C2000WARE

I am using FatFs for usb mass storage devise and I getting error  "Unrecognized/undefined driver for DISK0!" in dual_disk_driver.c.

Please help to resolve it.

#ifdef DISK0_EK_LM3S3748

#define DRIVE0_DRIVER "mmc-ek-lm3s3748.c"
#define DRIVE0_TIMERPROC
#else
#ifdef DISK0_DK_LM3S9B96
#define DRIVE0_DRIVER "mmc-dk-lm3s9b96.c"
#define DRIVE0_TIMERPROC
#else
#ifdef DISK0_RDK_IDM_SBC
#define DRIVE0_DRIVER "mmc-rdk-idm-sbc.c"
#define DRIVE0_TIMERPROC
#else
#ifdef DISK0_RDK_IDM
#define DRIVE0_DRIVER "mmc-rdk-idm.c"
#define DRIVE0_TIMERPROC
#else
#ifdef DISK0_USB_MSC
#define DRIVE0_DRIVER "fat_usbmsc.c"
#undef DRIVE0_TIMERPROC
#else
#error "Unrecognized/undefined driver for DISK0!"
#endif
#endif
#endif
#endif
#endif

#ifdef DISK1_EK_LM3S3748
#define DRIVE1_DRIVER "mmc-ek-lm3s3748.c"
#define DRIVE1_TIMERPROC
#else
#ifdef DISK1_DK_LM3S9B96
#define DRIVE1_DRIVER "mmc-dk-lm3s9b96.c"
#define DRIVE1_TIMERPROC
#else
#ifdef DISK1_RDK_IDM_SBC
#define DRIVE1_DRIVER "mmc-rdk-idm-sbc.c"
#define DRIVE1_TIMERPROC
#else
#ifdef DISK1_RDK_IDM
#define DRIVE1_DRIVER "mmc-rdk-idm.c"
#define DRIVE1_TIMERPROC
#else
#ifdef DISK1_USB_MSC
#define DRIVE1_DRIVER "fat_usbmsc.c"
#undef DRIVE0_TIMERPROC
#else
#error "Unrecognized/undefined driver for DISK1!"                       //Here error come.
#endif
#endif
#endif
#endif
#endif

  • Hi,

    Are you using an example from C2000Ware?

    Regards,
    sal
  • Yes ,

    I want to use this in my project but when FatFs I get this error.Other error are resolved.
  • I am not familiar with this source file. But it looks like you need to define one of the macros.

    Regards,
    sal
  • Any one else can tell what is problem?
  • Like Sal said you need to define one of those macros appropriately. Are you using FatFs with USB? I suspect you need to define DISK0_USB_MSC since that fat_usbmsc.c file is the one that works with our USB lib.

    Edit: I guess since this is a dual disk driver file, what are you using for the other disk? An MMC?

    Whitney

  • Thanks for replay,

    As you ask-----

    1. Are you using FatFs with USB---YES

    2. I suspect you need to define DISK0_USB_MSC since that fat_usbmsc.c ---I getting this error in dual_disk_driver.c. But I only want to use only USB. so please tell how to select it?

    3.I guess since this is a dual disk driver file, what are you using for the other disk? An MMC?---Yes you are right this is in "dual_disk_driver.h". But I am using USB only.

    One more thing, I search "DISK0_USB_MSC" in all files, I don't found this any where as.So where to define this?

  • You shouldn't need to use dual_disk_driver.c if you're not trying to actually do dual drives in your application. Can you remove it from your project (our usb_host_msc example project doesn't use it)? Or am I misunderstanding what you're trying to do?

    Whitney

  • You are correct. I am using USB only. But when "dual_disk_driver.c" is removed then I get lot of errors like multiple deceleration of function, can not open the file etc.

    Some thing is wrong when I try to copy this in to my project. Can you tell the correct way to marge Fatfs and other file required for USB in project?

    Thankyou
  • Our usb_host_msc example project successfully uses Fatfs and USB. Have you looked at which files from the Fatfs library it uses? Are they sufficient for what you need to be able to do in your application?

    You don't need to use all of the files in the Fatfs library for it to work. In fact, including all of them will cause it to fail to build. As you've already observed, there are several cases where files contain different implementations of the same functions (for example tff.c and ff.c). You need to pick and choose the specific ones you need.

    Whitney