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.

how to use ethernet to download code to EK-TM4C1294XL

Other Parts Discussed in Thread: EK-TM4C1294XL

Hi,excuse me.

I meet some problem when I tried to download code to my EK-TM4C1294xl via ethernet.

I read the LM Flash ‘help’ informaton,it says board should be preprogrammed with a properly configured boot loader.

I wonder if that means the default bootloader on board dosen't support ethernet.

And I have a try.I download boot_emac_flash.bin which is designed for DK-TM4C1294 to my board and then try to download boot_demo_emac_flash.bin also designed for DK-TM4C1294 to board via ethernet. However, it dosen't work.

Can some one warm-hearted do me a favor to tell me what should I do?Thank you

  • The example "boot_demo_emac_flash" developed for DK-TM4C129X will not work on EK-TM4C1294XL board. That application has to be modified to work with the EK-TM4C1294XL board.

    The bootlaoder "boot_emac_flash" should work fine without any problem.

    Do you want to use the Flash-based Bootloader or ROM-based Bootloader?

    If Flash-based Bootloader is used, then note that the linker script of the application has to be modified. This is demonstrated in the linker script of "boot_demo_emac_flash" example in the folder "/examples/boards/dk-tm4c129x/boot_demo_emac_flash".

    If ROM-based Bootloader is used, then the application does not need any special handling of the Linker Script - in other words, any application that runs when programmed with JTAG will also work with ROM-based Bootlaoder.

    Thanks,
    Sai
  • Hi,Sai.
    Thank you very much for your answer.But I still have some questons.
    First,if I use ROM_based Bootloader, I failed to connect the board via Ethernet.
    I connect my board with a router and find its IP,then I open the LM Flash and choose Ethernet, fill the board's IP and MAC in the "client IP address" and "client MAC address", "Ethernet adapter" choose my PC 's IP.Then I choose a binary document which can be downloaded via JTAG. However,the software don't allow me to fill in the offset address and it is "attempting to connect..."all the time.Just like the picture showed above in my question. Am I wrong at any step?
    Second,I feel quite confused about which part should I change in the linker script.And you said the "boot_demo_emac_flash" will not work on EK-TM4C1294XL,can you offer me some examples?
    Thank you :-)
  • Did you erase the flash (using "Flash Utilities")? The flash has to be erased for the device to enter ROM Bootloader. Otherwise the device will start executing the code in the Flash and won't enter the ROM Bootloader.

    The other option to enter ROM Bootloader is to configure the BOOTCFG register. Be very careful when selecting this option and refer the datasheet for more details.

    Thanks,
    Sai
  • Hi,Sai.
    Thank you very much for your answer.
    I do erase the entire flash, however ,it dosen't work.
    And I erase the flash and download the code via COM3 successfully, I have no idea about Ethernet.
  • One more thing to note is that the BootP client on TM4C, will increment the delay every time it does not hear from the BootP server. This is done to avoid slamming the network with requests.

    So depending on how long it took to press the "Program" button on the "Program" tab of "LM Flash Programmer", the delay could be significant, upto a maximum of 2 minutes. To speed up things, I would recommend the following steps:
    * Erase the flash using JTAG.
    * Set-up "LM FLASH Programmer" to upload a binary (built to wrok with JTAG) over Ethernet.
    * Reset the TM4C device.
    * Then start the upload process, by pressing the "Program" button on the "Program" tab of "LM Flash Programmer".

    Thanks,
    Sai
  • Hi,Sai.
    Thank you very much for your replay.
    But I think I don't quite understand.
    Do you mean in the step two:"Set-up...over Ethernet" I don't do anything untill step four"The start...'Program' tab of..." I press the "Program" button?
    If so,I wait for at least 10 minutes but nothing happened.Always attempting to connect.
  • Yes.

    In step 2 just set-up LM Flash programmer with the necessary information on
    * "Configuration" tab like Client IP Address, MAC Address and Ethernet Adapter.
    * "Program" tab with the correct .bin file.

    Can you program an example like "enet_uip" using JTAG interface and check if an IP address is acquired? Is the IP address same as the one that is entered for "Client IP Address"(while using ROM Bootloader)?

    I have followed the exact steps I told you and can program a binary (enet_uip) using "LM Flash Programmer" over Ethernet using ROM Bootloader.

    Thanks,
    Sai
  • Hi,Sai.

    Thank you very very much for your replay.

    I download the "enet_uip.bin" to my board and visit its web site using the IP address the same as the one I fill in the LM Flash.So I'm sure the IP address is correct.

    Then I tried these four steps again. However, I still can not connect the board via Ethernet.

    And I have a question.Is it normal that we don't need to offer the offset via Ethernet? Every time when I try to use Ethernet, the "offset"  column is unable to fill in. Just like the picture showed above in my original question.

    I intend to change a new board to have a try. :-)

  • Hi,Sai.

    Thank you very much for your replay.

    I asked another person who owns an EK-TM4C1294XL, and he connected the board via Ethernet successfully. He claimed that not every time he tired to download code to the board would success, and there exists some time delay after pressing the "Program" button.

    And his method is almost the same as yours.

     So I'm sure your method is correct and maybe there exists some problem with my board.

    At last,thank you very much for your help. :-)