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.

TM4C129ENCPDT: USB Device MSC using EK-TM4C129EXL

Part Number: TM4C129ENCPDT
Other Parts Discussed in Thread: EK-TM4C129EXL, EK-TM4C1294XL

Tool/software: Code Composer Studio

Hey Team, 

I'm implementing USB Device Mass Storage Class using the evaluation board (EK-TM4C129EXL). I have used the example provided by TI along with the TivaWare_C_Series-2.2.0.295. I'm using the examples from the board dk-tm4c129x. I successfully linked the usblib files and FATFS files. In the example it uses an external flash memory (mx66l51235f). but i edited the code a bit and changed the flash memory read/write/erase functions to the internal flash memory access functions. I want to make the internal flash memory as a MSC. I have successfully compiled the code. but somehow while debugging when the USB is connected, the windows shows "USB device not recognized" error.

I'm attaching the edited project file below. Please provide any suggestions you have on this.

USB_FreeRTOS_Test.zip

Also do let me know if any examples are available, which uses the internal flash memory and USB to implement USB MSC.

  • more information on the error,

    here is the popup I'm receiving while debugging. When I checked the device manager it shows that device descriptor request has failed.


    The 'g_eMSCState' in the MSC_DEV_DISCONNECTED case. I think my USBDMSCEventCallback is not working.

  • Hi,

      I'm currently out of office until Wednesday. I will look into your question when I come back. In the meantime, have you tried the original example but only remove the code that is related to LCD display for the DK board. Do you have the same error?  I don't have the PC with me at the moment. Have you checked the USB examples for the EK-TM4C1294XL LaunchPad? 

  • Hey, there is an update. as i said in the above comment the issue was related to the USBDMSCEventCallback. It was not functioning on any events. The issue was because the interrupt vector table was not configured properly in the startup source file. I edited that and added USB0DeviceIntHandler and now it seems to be working properly. Mass Storage Class device is showing in the device manager.

    I think the issue is sorted. I will be testing this more tomorrow and will update on any further findings.

  • I have tested and I can confirm that the issue is resolved.

    But I have another issue which is related to the FAT file system format. The internal storage is visible in the windows file explorer but since it is not formatted to any FAT formats, windows can't access the files. Windows tries to format the same but it fails. Do I need to format a certain portion of the internal flash to any FAT formats?
    How can I do that?