The Embedded TFTP Server can store files in a generic File System.
All interface functions are located in TFTP_uif.c, which is a
user interface module. This module is in the
\Keil\ARM\RL\TCPnet\User folder. You must copy it to your
project directory and add it to your project.
The TFTP_uif.c module is preconfigured for RL-FlashFS, so no modifications are
required. You can modify this interface module to use another type of
file system or to use a different storage media such as a hard
disk.
The following functions are implemented in this module:
tftp_fopen() - open a
file for reading or writing.
tftp_fclose() -
close a file that was previously opened.
tftp_fread() - read a
block of data from a file to the TFTP data buffer.
tftp_fwrite() -
write a block of data from the TFTP data buffer to a file.
The following functions are optional in this module:
tftp_accept_host() - used
for the TFTP server access filtering. It is called when a TFTP
client is trying to connect to a TFTP server.
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.