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: Question about LM flash and Ethernet download

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: UNIFLASH

When I use LM flash to update firmware on the TIV CPU using Ethernet  / bootP, the CPU does not execute code after the firmware update until we do a power cycle of the CPU. 

I know that when using a probe and not Ethernet, there is a option to reset the CPU after the DFU and with Ethernet this option is grayed out but selected.  In other words, I see on the "Program" tab the option "Reset MCU After Program" is selected but the option is grayed out so I can change it.  I think this used to work but I have not used these tools in a while.

I am using LM flash build 1613.  I know the code is good because it runs after the reset but I would like it to run after its updated without a reset.

Any ideas?

Doug

  • Hi Doug,

    No ideas to offer unfortunately. LM Flash has been like that for as long as I've used it and neither Charles nor I have the source code to adjust features like that or even look into the code to see the 'why' that is the case.

    Best Regards,

    Ralph Jacobi

  • Is there a newer tool that does the same thing?  I installed Uniflash but I didn't see a Ethernet interface and the tool is definitely not a as "light weight" as LM flash.

    Doug

  • Hi Doug,

    So we have a command line tool you can use in TivaWare at: [Install Path]\TivaWare_C_Series-2.2.0.295\tools\bin\eflash.exe

    That tool is documented in SW-TM4C-TOOLS-UG-2.2.0.295.pdf so you can read up how it works and how to provide the inputs like the MAC address.

    Best Regards,

    Ralph Jacobi

  • Hi Doug,

    When I use LM flash to update firmware on the TIV CPU using Ethernet  / bootP, the CPU does not execute code after the firmware update until we do a power cycle of the CPU. 

    Two questions regarding this:

    1) Are you using a Flash or ROM Boot Loader?

    2) Have you connected the device to CCS in any manner when you do the boot loading with LM Flash Programmer?

    Best Regards,

    Ralph Jacobi

  • Q1: I use the boot loader in ROM.  

    Q2: I often use CCS to update the firmware but some times I need to update a micro in a remote location and using Ethernet/bootP allows me to do it without a probe.

    I will look at the tool you recommended "eflash.exe"

    Thanks,

    Doug

  • Hi Doug,

    From what I can see, the ROM boot loader does not have an automatic software reset whereas the Flash boot loader does. So if you were using the Flash boot loader in the past that would explain why you saw it working correctly.

    The ROM boot loader does execute the software reset if the COMMAND_RUN command is sent, so it seems LM Flash Programmer is not doing this at the end of the image flashing and that is what is preventing the reset. You should be able to get eflash.exe to do that.

    Best Regards,

    Ralph Jacobi

  • I don't think I have ever used the flash boot loader.  Is that something that's compiled into the binary and then executed out of flash?

    Thanks,

    Doug

  • Hi Doug,

    Yeah though the binary itself can be either combined with the application file with command line tools to make a single file that is flashed or the boot loader binary can be flashed (or ROM boot loaded) first and then the application can be boot loaded from there (which is why there is an option to select start address of the program in LM Flash). Of course that all eats up some of your available Flash memory, so thats one of the downsides.

    Best Regards,

    Ralph Jacobi