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.

TM4C123GH6PM: Bootloader

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL

Hi,

We wanted to know how do be flash a application along with the bootloader.

We tried flashed the boot_serial application first and tried the UART Commands. We seemed to get the response.

When we flash the boot_demo1 application we do not seemed to get any response when UART commands are given.

Bootloader how do we program along with the application.

Thank you,

Deepanraj.A

  • Did you set the offset to 0x2800?

  • Hi Bob,

    Thanks for the support.

    Actually our requirement is we need to program the application or a firmware package into the external SPI FLASH of TM4C.

    The TM4C will be connected to the PC/other-platform via USB.

    So the user will perform operation via USB to program the SPI flash of TM4C. From the External SPI flash we will load the firmware required by the TM4C into internal memory.

    Please let us know how do we program the Binary into the SPI flash. What are the commands or raw data sequence for programming data through USB.

    As we are struck in this for a very long time please help us resolve this issue asap.

    Thank you,
    Deepanraj.A
  • If I understand you correctly, you want to connect the TM4C123 to a PC as a USB device. A program on the PC, sends "data" to the TM4C123 which then programs that "data" into a serial flash device connected to an SSI port of the TM4C123. At some point the TM4C123 reads the serial flash loading the "data" into RAM and then executing it as program code. That is a very unique request. Realize that the size of the RAM is relatively small (32KB) and loading from a serial flash is relatively slow. Is my understanding correct?

    We do not have any examples that do what I described above. We do have an example of configuring the TM4C123 as a USB bulk device:
    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c123gxl\usb_dev_bulk

    There is also a complex example showing how to use the SPI (SSI) to to manage a file system (FATFS) on an SD card:
    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c123g\sd_card
  • Hi Bob,

    Actually we wanted to program the flash connected to the TM4C123 from PC which is connected through USB.

    Is there any sample application in PC side to program the data from PC into the TM4C external flash.

    Actually ours is a Linux based PC so whatever application is available, is for Windows.

    The interface connected between PC and TM4C123 is USB.

    We cannot use UART commands to program through the USB. So please let us know the USB commands or any sample application which will work on USB.

    Our TM4c will act as USB OTG mode. So we need to program the device using the USB.

    Thank you,
    Deepanraj

  • Sorry, I do not have any such sample code.
  • Hi Bob,

    Please let us know, How to proceed with above mentioned process. Since we are not able find a method to program the device when it is in OTG mode.

    Thank you,
    Deepanraj
  • With the USB in OTG mode, is it able to negotiate as a host and then use DFU (Device Firmware Update) mode? Take a look at section 2.11 on page 71 of C:\ti\TivaWare_C_Series-2.1.4.178\docs\SW-TM4C-USBL-UG-2.1.4.178.pdf in TivaWare.
  • Hi Bob,

    We have not tested USB in OTG mode. But we wanted to make sure it is possible or not.

    Thank you,
    Deepanraj