The Trivial File Transfer Protocol (TFTP) is a very simple
protocol used to transfer files. Using this protocol, you can send
files to the System or read files from it. This protocol can be used,
for example, for Firmware Upgrade.
The following TFTP Client options are configurable from the
Net_Config.c configuration
file:
TFTP Client switch enables or disables the TFTP Client
service in your application. It is enabled when this value is set
to 1. It should be set to 0 when TFTP client is not used in your
application.
#define TFTPC_ENABLE 1
Block Size specifies the size of transfer block in bytes.
Values can be selected from a list. The default value is 512
bytes.
#define TFTPC_BLOCKSZ 512
Number of Retries specifies how many times the TFTP Client
tries to retransmit the data before giving up. The default value
is 4.
#define TFTPC_MAXRETRY 4
Retry Timeout is the timeout, after which the TFTP Client
retransmits the data. Values, specified in milliseconds, can be
selected from a list. The default value is 500 ms, represented as
#define TFTPC_RETRYTO 5
#define TFTPC_RETRYTO 5
Note
You also need to add the TFTPC_uif.c user interface
module to your project and customize it. This file is in the
\Keil\ARM\RL\TCPnet\User folder.
When the TFTP client is not enabled, the ARM linker does
not link the TFTP support modules to your application and
thus reduces the code size and memory usage.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.