The realization of fatfs+ftp on evmc6678 dsp6000

I have already posted a post explaining the implementation of fatfs porting, but that still has bugs, this time I fixed it, and I also ported the ftp server on it, let’s take a look at the porting of ftp, I use tingftp for ftp transplantation. This ftp server is open source and implements standard ftp commands. The official website says so, but when I tested it under windows, I found that there were two different commands, so I carried out a A little modification. The ftp test tool uses the ftp test tool that comes with cmd under win. I will not explain the use of the tool, and it is very simple to use.


The source code of tinyftp has only a few files. The main thing to be transplanted is the file interface and the network interface. First of all, of course, the porting of the file excuse is completed. We first copy cmdparser.h && connections.c&&defines.h&&fileutils.h&&fileutils.h&&opts.c to our project.

File definitions are related in fileutils.c && fileutils.h

You can complete the relevant transplantation here. Let's look at the source code. I'm too lazy to talk about it.

The porting of the network is mainly to complete the porting of the socket in connections.c, because the process in linux is used here, but there is no process in ti-rtos, only threads, so here we use threads instead, see my source code for the porting process.

Let's upload the source code: http://download.csdn.net/detail/lotoohe/9640922


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325947659&siteId=291194637