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: Cant update firmware over Ethernet using LM flash

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

I am trying to get the Ethernet ROM boot loader to work using the LM flash. I have the example design in the board. I have started LM flash and entered the IP and MAC address. I have selected the bin file. But when I press program nothing happens. It just says attempting to connect but doesnt. If I look using wireshark there are no packets sent to the board. I can ping the board so it is working. Anyone know why LM flash would not work? Thanks

  • Hi Jon,

      Is your flash erased and you want to use the ROM bootloader to transfer your application firmware to the flash? Or you already have an application firmware in the flash and the application is calling the ROM_UpdateEMAC() API to jump to the bootloader in the ROM. If it is the later then there is an example in <TivaWare_Installation>/examples/boards/ek-tm4c1294xl/boot_demo_emac_rom. In either case, the ROM bootloader will wait for a magic packet from the host. When the magic packet is received then the bootloader process will begin. 

      The magic packet comprises 6 bytes of 0xAA followed by the target MAC address repeated 4 times. When the application receives this magic packet it transfers the control to the bootloader.

      You should see something like this in the wireshark.

  • Hi charles

    Yes I am using that example. But the issue is that the LM flash util doesnt seem to be sending any packets to the board. There isnt anything on the Wireshark display. Do you know of any reason why it wouldnt do that?

    Regards

    Jon

  • Hi Jon,

      I don't know the reason. Let's make sure it is an issue with the LM flash programmer and not something with the how you capture wireshark or some network issue. Can you do an experiment? Run the TivaWare example boot_emac_flash. This is the flash-based ethernet bootloader. The flash ethernet bootloader also waits for the magic packet from the LM flash programmer if you have the correct IP address and MAC addresses. Do you see the magic packet sent by the LM flash programmer? 

      Also try the eflash.exe which is a command line version of the LM flash programmer for flash downloader. 

  • Hi Charles

    It seems to be working now. I have no idea why it wasnt. Although I can only see TFTP packets in Wireshark and no UDP packet at the start. But I guess it must be sending one or it wouldnt work.

    Regards

    Jon

  • Hi Jon,

      Glad your issue is solved. I will close the thread for now. If you have new questions you can open a new thread.