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.

Problem with TM4C1294 ROM Boot Loader

Other Parts Discussed in Thread: TM4C1294NCPDT, LMFLASHPROGRAMMER

Hi,

we have a  Tiva TM4C1294 board with UART0 and JTAG connections for debugging. UART0 is connected to the PC with a FTDI USB/serial cable. UART0 works fine with our application Firmware as a console (Virtual COM Port).

For production we want to program the Flash via UART0 and the ROM boot loader which is located in the ROM of the device. We now tried to program an empty device with the LM Flash Programmer (1613).

The settings are:
Manual config - Serial (UART) - COM3 (VCP) - 115200 Baud - 64 Transfer size - Autobaud
Reset after program - Adress offset 0x00

When we start to program an example FW, LM Flash programmer seems connecting to the device, he shows 'Erasing...' for some seconds, but then a Error Messages 'Failed to send download command' and  'Failed to program/update the board'  appears.

What's going wrong there?
If we get it right, the device should start in Boot Mode if there is no program in the flash!?

Thank you in advance
Frank

  • Hello Frank

    Couple of items to consider and check

    1. Is it a custom board?
    2. Did you try w/o AutoBaud?
    3. I assume based on the mention of the device being TM4C1294NCPDT which is a ethernet PHY enabled part. What are the ethernet pin (RBIAS) connected to if it is a custom board and what crystal frequency is being used on the board?
    4. If you go to the Device Manager and check the drivers for the ICDI what does it tell to be date as?

    Regards
    Amit
  • Hello Amit

    Amit Ashara said:

    1. Is it a custom board?

    Yes, it is.


    2. Did you try w/o AutoBaud?

    Yes, I tried both, disabling AutoBaud I get NO connetion to the board. With AutoBaud the connection seems to be established.


    3. I assume based on the mention of the device being TM4C1294NCPDT which is a ethernet PHY enabled part. What are the ethernet pin (RBIAS) connected to if it is a custom board and what crystal frequency is being used on the board?

    In this design PHY is not enabled, RBIAS is open, also the ethernet ports.
    The crystal frequency is 16MHz


    4. If you go to the Device Manager and check the drivers for the ICDI what does it tell to be date as?

    The drivers are version 2.8.14.0, but not used when I connect the board.

    Are they really relevant for using LM flash programmer with UART0?? I have no IDCI interface on board! The emulator Blackhawk is directly connected via JTAG. And the PC is directly connected to UART0 via a USB/serial converter.

    Regards

    Frank

  • Hello Amit,
    hope it helps, I monitored the UART0 line:

    After connection is ok

    LM Flash sends 0x03 0x20 0x20 PING Answer from device 0x00 0xCC
    LM Flash sends 0x03 0x23 0x23 GET_STATUS Answer from device 0x00 0xCC 0x03 0x40 0x40

    LM Flash sends 0xCC 0x00 0x00 0x00 0x00 followed by a lot of data

    After this, connection is broken

    Regards Frank
  • Hello Frank,

    We ran into issue with the USB DFU with LMFlashProgrammer on Ethernet enabled parts which do not have RBIAS pin connected and we suspect that the root cause may be the same for the other serial ROM boot loaders. Hence I would suggest you to connect a 4.89K resistor to the RBIAS pin to GND and then check.

    Also the version has a driver date which must be Sep-2011 or Sep-2012, as the latest CCSv6 is know to update it to Jun-2014 which is also a know issue being fixed.

    Regards
    Amit
  • Hello Amit,

    it works! With the resistor at RBIAS the function is ok now.

    Thanks a lot and have a good time
    Regards
    Frank