Part Number: EK-TM4C1294XL
Hello,
I've been looking for information on enumerating a tm4c device's internal flash memory (I'm currently using EK-TM4C1294XL) as a USB mass storage device. I've seen the usb_dev_msc example for the DK-TM4C129X that uses Quad SPI Flash for the storage medium, but I haven't seen anything for the internal flash. The motivation would be to have a bootloader that enumerates the internal flash as a usb drive on the host computer and the user could simply drag and drop a new firmware .bin file onto the drive and the device would write the new application to the internal flash. Basically, it would be like the usb_stick_update example but using the tm4c device as a usb device as opposed to a host.
I've started by porting the usb_dev_msc example to the EK-TM4C1294XL in CCSv7 by altering the pinout and commenting out calls to everything graphics related and the SPI flash. So far the device enumerates as a mass storage device in the device manager, shows up as a drive in windows explorer, but a Windows popup says "You need to format the disk in drive E: before you can use it." I hesitate to throw caution to the wind and allow Windows to format it as a FAT file system in case it has unintended consequences.
I think my question is twofold, firstly is my goal of having the internal flash as a usb msc device for firmware updates possible? And if it is possible like I think it is, what specifically could be needed to "format the disk" properly (or trick Windows into thinking it's formatted correctly)?
Just for the sake of giving additional information, I am using TivaWare_C_Series-2.1.4.178.
Thanks,
Luke