Hi Paul
There hasn't been any real demand for TFTP bootloading and personally I think that a small HTTP server does the job quite well - it doesn't need a TFTP server operating (asking someone with only limited PC and network knowledge to install one to load new SW is not easy when a simple Browser will do it).
Of course there may be circumstances when it needs to be automated, where it may indeed be of use. For this there is some demo code in application.c
// Test TFTP transfer
//
static void fnTransferTFTP()
{
//fnStartTFTP_client(tftp_listener, ucTFTP_server_ip, TFTP_GET, "test.txt", '0'); // get a file (text.txt) from TFTP server and save it locally (to file '0')
//fnStartTFTP_client(tftp_listener, ucTFTP_server_ip, TFTP_GET_COMPARE, "test.txt", '0'); // get a file (text.txt) from TFTP server and compare it to local file ('0')
fnStartTFTP_client(tftp_listener, ucTFTP_server_ip, TFTP_PUT, "test1.txt", '0'); // transfer local file ('0') to TFTP server and save it there as (test1.txt)
}
he idea is that it can get a file from a TFTP server, upload it and compare the content against an already loaded version (not actually saving it though). If the version is different it can repeat with the save step and reboot to program it, as the 'bare-minimum' loader does it. By commenting in and out the three test lines the three cases can be tested.
Regards
Mark