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.

TM4C1294 program via Uart using bootloader

Other Parts Discussed in Thread: TM4C1294KCPDT, TM4C129XNCZAD

Hi

i am using TM4C1294KCPDT, a board we designed that use UART0, now we are going to mass production, then we met a problem.

previously we use Jlink-SWD to program, but now facing the production, we try to program via Uart, i tried the LM flash programmer, select the interface  of Serial(Uart), but it failed.

i see the datasheet, it seem to need a pin of PH7 to pull high before reset, but the chip TM4C1294kcpdt doesn't have PH7, only have PH0~3, how could i do it?

can this way work with LM flash programmer? we want to use the built-in ROM Uart bootloader, the one that doesn't burned by user.

it would be very thankful for your advise!

  • Hello Rubin

    Why would PH7 need to be pulled high? There is no such requirement for ROM based Boot Loader

    Regards
    Amit
  • pls see the datasheet of TM4C1294KCPDT at page 673/1888, there is a register for boot port and boot pin.
    how can i enable rom bootloader with only a gpio pin ?
  • Hi Amit,
    i found what a want in this link, e2e.ti.com/.../403572
    but i still have few problems, in this link, it said the uart rom bootloader is disabled by default, unless user program have reconfigure the BOOTCFG register.
    question 1: what will happen when the chip is new and empty? can rom bootloader useable because this is first program?
    question 2: if so, i 've tried to erase the chip i have on hand, and use LM flash programmer but still failed. is the first time programming still unavailable for rom uart bootloader?
  • Hello Rubin,

    The Port and Pin are configurable in the BOOTCFG register. The super set part of TM4C129XNCZAD has PH7 so the register will remain the same for all devices within the family. As per the device pinout the user can use the appropriate Port-Pin set.

    The use of the BOOTCFG requires that when you do a hard reset (POR or BOR or Pad Reset or WDT configured as a POR reset) the Pin is held in the correct configuration so that the ROM Boot Loader is invoked.

    Regards
    Amit
  • Hello Rubin,

    Ans-1: For a new and empty flash device, the rom boot loader will run by default
    Ans-2: Make sure that the device is reset after erasing the flash.

    Regards
    Amit
  • Thanks Amit for your help, i can make it without the help of gpio pin
    1. i can program it for a new and empty flash, using flash programmer. but there seem to be a failure at times.
    2. in my app program, i use a command to jump into bootloader, it work well and never fail. but the first kind sometime fails. i will find it out


    thanks for Amit.