Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configuring Compiler settings

...

\Micrium\Software\uC-TFTPs

...

Copy the file from the µC/TFTPs configuration folder into your application as illustrated below.

Panel
titleFigure - TFTPs Template File Copy

Image Added

Adding µC/TFTPs Example Application Code

...

Note that some sections of the source code have been removed or modified to help focus on the µC/TFTPs module use. 

Code Block
languagecpp
titleListing - TFTPs Example Application Code
linenumberstrue
void  AppTaskStart (void  *parg) 
{ 
	TFTPs_ERR          err_tftps;

   
    App_InitFS();                                               /* See Note #1. */                              
	App_InitTCPIP();                                      		/* See Note #2. */   
           
	printf("Initialize TFTP server...\n\r");
	TFTPs_Init(&TFTPs_Cfg, &TFTPs_TaskCfg, &err_tftps);         /* See Note #3. */   
	TFTPs_En();													/* See Note #4. */
}


Panel
bgColor#f0f0f0
  1. Initialization of the µC/FS file system.
  2. Initialization of the µC/TCP-IP stack.
  3. Initialization of the µC/TFTPs module.
  4. Enable TFTP Server. When this function returns, the system is ready to accept TFTP requests from other hosts on the network.