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: TM4C1294NCPDT

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

Tool/software:

Hello,

 

I am using a TM4C1294NCPDT processor and TI-RTOS. I am trying to set things up to update firmware over ethernet using the ROM based EMAC bootloader. I have successfully done this in the case of dynamic ip addresses but my application requires a static ip address; that is the processor is set up to use a static ip address. When the processor is using a dynamic address the ROM bootloader works great. When I try to use a static address the LM Flash Programmer application never connects. Is there a way to get the ROM based bootloader to work in the case of static ip addresses?

 

Thanks

Scott Bates

  • Hi Scott,

    -  What is the DHCP address you normally acquire?

     - What is the static address you use?

     - Did you use the .cfg to enable static address like in below?

     .

    - Is your static address on the same subnet as the PC that runs the LM flash programmer?

    - Please do an experiment. First use DHCP to acquire an address. Let's say you get DHCP IP=192.168.254.10. Use this same address as your static address and reload your code accordingly. Will you still have problem? This will help isolate the problem. 

    - Perhaps before you do the above experiment, do a simpler experiment by running an httpsever or tcpecho application using static address. Will you have a problem for the client application such as your browser connecting to the sever?

      

  • Hi Charles,

    See my answers in red below. Also I made a ppt with a bunch of screen shots for the various test cases. I don't see a way to add it, but if you are interested in looking at it I can email it to you.

    I am Running TI-RTOS example tcpEcho_EK_TM4C1294CL_TI on the EK-TM4C1294XL demo board and running tcpSendReceive example on my computer to talk to demo board. Also when I am using the static IP I am going directly from  NIC on my computer to the demo board. When I am using dynamic IP I am going from my computer to a switch to the demo board.

    -  What is the DHCP address you normally acquire? 172.22.2.51

     - What is the static address you use? 192.168.22.2

     - Did you use the .cfg to enable static address like in below? Yes. 

    .

    - Is your static address on the same subnet as the PC that runs the LM flash programmer? The processor is on part of an TM4C1294XL demo board which is attached directly to a NIC on the same computer that the LM flash programmer is running. So I think the answer is “yes”. 

    - Please do an experiment. First use DHCP to acquire an address. Let's say you get DHCP IP=192.168.254.10. Use this same address as your static address and reload your code accordingly. Will you still have problem? This will help isolate the problem. I set the static ip to the dynamic ip (172.22.2.51)that worked. The tcpEcho program runs with the board but the LM flash programmer won’t program.

    - Perhaps before you do the above experiment, do a simpler experiment by running an httpsever or tcpecho application using static address. Will you have a problem for the client application such as your browser connecting to the sever? No problem. The tcpEcho program runs with both a dynamic IP (172.22.2.51)  and a static IP (192.168.22.2). I have screen shots in a ppt demonstrating this.

  • Hi Scott,

      How many NICs do you have on your PC? Sometimes there are multiple of them. There is a known bug that LM flash programmer will by mistake send the magic packet to the wrong NIC. Can you try to disable all NICs on your PC except the one that is on the same network as the MCU. I want to know if this is due to the known bug. 

  • Hi Charles, 

    There is one 2-port NIC and then there is a single ethernet port on the computer motherboard. I disabled the motherboard port and one of the NIC ports. LM flash programmer still doesn't work in the static ip case. I have a laptop that just has a single ethernet port. I will try using that on Monday as another test.

  • Hi Charles,

    I tried using a laptop and was able to get the ROM firmware updater to work with a static IP address. I had to turn off all the ethernet/wifi ports except for one and that seemed to do the trick. Out of curiosity ss there any chance that the bug will be fixed?

    Thanks for the help,

    Scott

  • Hi Scott,

      Glad that you are able to resolve the issue due to the bug in LM Flash Programmer. Unfortunately, there is currently no plan to release another TivaWare SDK in the short term.