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: Download .bin file from cloud and passthrough to another MCU downstream for firmware update

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

I have a Gateway built with TM4C1294NCPDT and executing energia code to receive commands from the Cloud over MQTT and pass them downstream to another MCU for execution as a part of my IoT solution. The end to end system is working as required. I now want to integrate firmware update for the downstream MCU. In the architecture I have designed, the TM4C1294NCPDT in the gateway, which connects to the Cloud using Ethernet, should download the .bin firmware file from a known folder on the Cloud, say Google Drive, and pass the same to the downstream MCU which will receive the same and update its firmware. The local path is designed and tested with dummy data. However, I am not able to decide the algorithm to download the bin file from the Cloud. Are there any sample examples for Energia that can download the file using FTP/TFTP or any other suitable protocol. The bin file size is about 40KB.

Any inputs on downloading a binary file from the Cloud using energia code on TM4C129NCPDT would be appreciated.

Thanks in advance for the assistance.

Regards.
Hemant

  • Hi,
    For Energia specific questions please your questions to forum.43oh.com/.../ as we don't support Energia.

    The TivaWare library has Ethernet bootloader example that use TFTP. The project example can be found in <TivaWare_Installation>/examples/boards/ek-tm4c1294xl/boot_emac_flash. The implementation of the TFTP protocol can be found in the bl_emac.c file.