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.

TM4C1294KCPDT: Ethernet based bootloader

Part Number: TM4C1294KCPDT

Hi,

      I am using TM4c1294KCPDT for my projects.

I want to update my code through Ethernet port using boot loader concept.

For this any one provide the steps how proceed from scratch.

Yuvaraj

  • Hi,

    Below are the steps you need to take.

    1. Program the TivaWare example such as enet_lwip into the MCU flash via the JTAG interface using CCS or LM flash programmer. 

    2. Run the enet_lwip and you should see the IP addressed printed out on the terminal window. You need to record this IP address. This IP address is dynamically generated by the DHCP server. This IP address needs to be used later when you run the emac_boot_flash example. The reason is that the PC running the LM flash programmer is also a BootP server as well as the TFTP server. The BootP server is static in nature. You need to manually associate a client's IP address with the client's MAC address in a fixed table in the BootP server.  Note the only purpose to run the enet_lwip is to obtain an IP address. Once the dynamic address is acquired it is leased on your network for some hours. You might be able to configure your router to lease an IP address indefinitely. Check with your IT department. 

    3. Program the boot_emac_flash into the MCU's flash via the JTAG interface. You can use the CCS or LM flash programmer to load the code. Note the boot_emac_flash starts at 0x0.

    4. Run the boot_emac_flash bootloader. The emac_boot_flash is supposed to send the BootP request now. However, since you have not yet launched the BootP server, the client will just keep sending the request. If you have a wireshark you should see the BootP requests at 1s, 2s, 4s, 8s and so on. 

    5. Open the LM flash programmer. See below. Enter the IP address that you just acquired from running the enet_lwip into the Client IP address field. Next enter the MAC address of your client. If you are using the LaunchPad you should see the MAC address on the sticker at the back of the board. What you are doing here is more like manually updating the BootP server's table of IP address and MAC address association. 

    6. Go to the Program tab and specify the boot_demo_emac_flash.bin as your application program image and hit the Program button. See below. 

    7. Give some time and you should see the download happening via the Ethernet.