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.

TM4C1294NCPDT: The Flash to TM4C1294NCPDT by UniFlash

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: UNIFLASH, EK-TM4C1294XL

Hi, I want TM4C1294 to read the bin file using UniFlash.

(Enable pins for USB, enable UART)

Which bin file in C: \ ti \ TivaWare_C_Series-2.2.0.295 should be loaded?

  • Hi,

      I'm not clear with your question. You can only use Uniflash to program .bin files for JTAG interface. You cannot use Uniflash to program .bin files for USB or UART. To program .bin files over UART or USB, you need to have a bootloader first, be it a ROM based or flash-based bootloader. Once you have the bootloader running, you can bootload from UART or USB (in DFU mode) interface. You can use LM flash programmer as the downloader application running on the PC side.

     

  • Change the content of the question.

    Which .bin file do I need to load before the boot loader can run?

  • Hi,

    Which .bin file do I need to load before the boot loader can run?

      I don't understand you question as to which bin file to load before the bootloader can run. A fully erased device has nothing in the flash. That will be a starting point. In order to bootload from an external interface such as UART or USB, you need to first program bootloader. Here I assume you are wishing to use the flash-based bootloader. You will program the flash-based bootloader to the flash memory at address 0x0. You will program the bootloader using the JTAG interface. Once the bootloader is running, it will configure whatever interface (UART or USB) you have and the interface will be ready to receive commands and firmware image from the specified interface. That is how the bootloader works. Why don't you try the TivaWare bootloader example. Start with C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\boot_serial\ccs\Debug\boot_serial.bin. This is a flash-based bootloader. It will be programmed to 0x0 through JTAG interface like any normal program that you load to the flash. Once the bootloader is running, you will load the C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\boot_demo1\ccs\Debug\boot_demo1.bin. This boot_demo1.bin is an application firmware that will be programmed to the flash at 0x4000 through the UART interface. Try these two examples to get a feel on how the bootloader works. 

      There is also a ROM-based bootloader. In this case, the bootloader is already stored in the ROM memory. If the flash is fully erased, then the ROM based bootloader will start and look for any available interfaces (UART, USB or others) and it will program your firmware image through the available interface. 

      Please refer to the Bootloader user's guide for details. https://www.ti.com/lit/pdf/spmu301