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.

EK-TM4C1294XL: usb_stick_demo

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: LMFLASHPROGRAMMER

Hi,

I am able to compile the usb_stick_demo project. I put the FIRMWARE.BIN file in the SW_ROOT

directory and connected the micro USB cable to the EK. I am able to reach the breakpoints at line

153 of uart_stick_demo (start the USB).

I am not seeing anything displayed on the console window.

I tried opening a puTTY window without success. How can I see these statements being displayed?

I was also able to reach a breakpoint at line 259 (USB stick). How do I know the FIRMWARE.BIN file is

being uploaded?

Thanks,

Priya

  • Hi,
    First I assume you run the usb_stick_update first which is a usb bootloader to load the usb_stick_demo from your usb stick. Is this correct? Can you please check if the usb_stick_demo.bin which is renamed to FIRMWARE.BIN is properly loaded into the MCU flash starting at 0x8000. You can verify this by using the LM flash programmer. Go to LMFlashProgrammer -> Flash utilities -> Verify Flash Contens -> Against .bin file. Or open the memory broswer to see if the flash starting 0x8000 has anything.
  • Charles,
    Thank you for your reply. I don't have a USB stick. Instead I put the FIRMWARE.BIN file in the C:\ti\TivaWare_C_Series-2.1.4.178 directory.
    When the USB_SWI button is pushed, will this load the FIRMWARE.BIN file into the flash? I connected the micro USB cable to the EK.

    I uninstalled and reinstalled the flash programmer. I am unable to open it on a Windows 10 machine.

    Any ideas why the uart_printf is not showing up on puTTY. I have the correct COM port and baud rate set up. I turned off flow control.

    Thanks,
    Priya
  • Hello Priya,

    That won't work as the firmware is looking for a USB stick which is either FAT-16 or FAT-32 formatted to find the FIRMWARE.BIN file. You won't be able to just load it from your C drive.
  • Priya,

     You need to have the FIRMWARE.BIN in the root directory of the usb stick. Please refer to the example user guide.

    2.29 USB Stick Update Demo (usb_stick_demo)

    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 eval board that is running

    the usb_stick_update program, this example program will be loaded into flash and then run on the

    microcontroller.

    This program simply displays a message on the screen and prompts the user to press the

    USR_SW1 button. Once the button is pressed, control is passed back to the usb_stick_update

    program which is still is flash, and it will attempt to load another program from the memory

  • Ok, thanks. The usb_dev_keyboard example works. I will look into what other USB examples I can try.
    Priya