SPNA243 June 2020 TM4C1236D5PM , TM4C1236D5PM , TM4C1236E6PM , TM4C1236E6PM , TM4C1236H6PM , TM4C1236H6PM , TM4C1237D5PM , TM4C1237D5PM , TM4C1237D5PZ , TM4C1237D5PZ , TM4C1237E6PM , TM4C1237E6PM , TM4C1237E6PZ , TM4C1237E6PZ , TM4C1237H6PGE , TM4C1237H6PGE , TM4C1237H6PM , TM4C1237H6PM , TM4C1237H6PZ , TM4C1237H6PZ , TM4C123FE6PM , TM4C123FE6PM , TM4C123FH6PM , TM4C123FH6PM , TM4C123GE6PM , TM4C123GE6PM , TM4C123GE6PZ , TM4C123GE6PZ , TM4C123GH6PGE , TM4C123GH6PGE , TM4C123GH6PM , TM4C123GH6PM , TM4C123GH6PZ , TM4C123GH6PZ , TM4C123GH6ZRB , TM4C123GH6ZRB , TM4C123GH6ZXR , TM4C123GH6ZXR
This is an example to demonstrate the use of the flash-based USB stick update program. This example is meant to be loaded into Flash memory from a USB memory stick using the USB stick update program (usb_stick_update) running on the microcontroller.
After this program is built, the binary file (usb_stick_demo.bin) should be renamed to the filename expected by usb_stick_update (“FIRMWARE.BIN” by default) and copied to the root directory of a USB memory stick. Then, when the memory stick is plugged into the LaunchPad board that is running the usb_stick_update program, this example program will be loaded into flash and run on the microcontroller.
This program simply displays a message on the terminal window and prompts the user to press the SW1 switch. Once the switch is pressed, control is passed back to the usb_stick_update program which is still in flash, and it will attempt to load another program from the memory stick. This shows how a user program can force a new firmware update from the memory stick.