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.
I am using the following:
ccs 6.1.2
TIRTOS 2.16.0.08,
compiler 5.2.7
XDC 3.31.1333
TM4C1294NCPDT
ndk_2_25_00_09
I would like to use TFTP to receive about 5M Bytes of data I need to write to a serial device so I need to receive a block of data write it to a serial device and get more data from TFTP till I have moved all 5 M Bytes.
Are there any examples I could leverage to see how to implement this?
I have found the following source that has some functions that look like they would help.:
C:\ccs6p1p2\tirtos_tivac_2_16_00_08\products\ndk_2_25_00_09\packages\ti\ndk\nettools\tftp
One example that could be leveraged possibly is the boot code in the Tiva since the boot code supports TFTP / BootP to do firmware update over Ethernet.
Where can I find the source code for the Tiva boot code and are there other examples of implementing a TFTP client using the functions in the code in the path above?
Thanks,
Doug
Hi Doug,
C:\ccs6p1p2\tirtos_tivac_2_16_00_08\products\ndk_2_25_00_09\packages\ti\ndk\nettools\tftp
One example that could be leveraged possibly is the boot code in the Tiva since the boot code supports TFTP / BootP to do firmware update over Ethernet.
Where can I find the source code for the Tiva boot code and are there other examples of implementing a TFTP client using the functions in the code in the path above?
Here are other sources that may be helpful to you for TFTP transfers.
- tftp.c contains various API for supporting TFTP. You can find the file in C:\ti\TivaWare_C_Series-2.2.0.295\utils\tftp.c.
- The TivaWare bootloader example has TFTP to receive packets from the TFTP server. Although it is a bare-metal example using uIP stack, I hope you can get some ideas on how TFTP works at the client side. Search for TFTP in C:\ti\TivaWare_C_Series-2.2.0.295\boot_loader\bl_emac.c file.
- There is also a PC based program that handles TFTP in C:\ti\TivaWare_C_Series-2.2.0.295\tools\eflash\bootp_server.c. This program is used to FTP data to MCU for the bootloader examples (boot_emac_flash.c).