Where can I find a properly woking USB MASS STORAGE DEVICE code for TIVA C (TM4C123GH6PM)?
I'm interested in the usb port initialization, and the using method.
Thanks,
Deni
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.
Where can I find a properly woking USB MASS STORAGE DEVICE code for TIVA C (TM4C123GH6PM)?
I'm interested in the usb port initialization, and the using method.
Thanks,
Deni
Thanks for your reply Markel!
I tried it already, the problem is that the following line:
ROM_GPIOPinConfigure(GPIO_PG4_USB0EPEN);
gives he following error:
usb_dev_msc.c(485): error: #20: identifier "GPIO_PG4_USB0EPEN" is undefined
I think that the pin I need, is not on port G. I looked after USB0EPEN in pin_map.h and found that it can be one from:
GPIO_PC6_USB0EPEN
GPIO_PD2_USB0EPEN
GPIO_PF4_USB0EPEN
The problem, is, that I don't know which one I need, and why. It's just 3 possibilities, so I can try all of them easily, but it would be better if I know for sure, which one is the correct choice.
and
ROM_GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_6 | GPIO_PIN_7);
gives a fault.
Hi,
Are you porting usb_dev_msc for EK-LM4F232 to TM4C123GH6PM?
GPIO_PG4_USB0EPEN is dependent on a preprocessor define. See, at pin_map.h and your project options. Also, it is possible that USB0EPEN is assigned at a different pin for TM4C123GHPM.
What you can do is compare pin_map.h for EK-LM4F232 and pin_map.h for Tiva Launchpad.
-kel
HI,
I think there are no usb_dev_msc for TM4C123GH6PM. You need to port usb_dev_msc from EK-LM4F232 Tivaware.
-kel
I'm trying to port the code for TM4C123GH6PM. What I wanted to say, the same function is assigned to a different pin. I just don't know to which one?
Hi Deni,
You, are the designer. That is for you to decide.
You, can use either of the three from below. I think you should review the schematic diagram of EK-LM4F232 with regards to this pins. Then think how you are going to implement that for TM4C123GH6PM. The schematic diagram can be found at EK-LM4F232 User's Manual.
-kel