Wiznet / FTP_LPC11E36_LPCXpresso

Create a repository of WIZnet NXP FTP Server Example.
0 stars 3 forks source link

Not able to program the flash #1

Closed svnagendra2003 closed 9 years ago

svnagendra2003 commented 9 years ago

Hi,

We are trying to implement FTP server for our application and also purchased the W5500-EVB board just because it can handle the FTP server program. Once the testing is completed, we are planning to purchase huge number of W5500 chips.

Now we are stuck up with issues

As instructed in github as well as wiznetmuseum, i imported the project files into LPCXpresso. When trying to build, i am getting

Fatal error: “wizchip_conf.h” : No such file or directory

I tried to download the wizchip_conf.h from wiznet forum website. But, again it gives some other error.

I am stuck up and not able to compile. Please look into this matter at the earliest and provide the proper set of codes. Also, please provide the .hex file, which I can download on to the board directly in order to test for the FTP server.

Also, i need clarifications on the following points:

  1. Can i directly pass SPI data on SCK0, MISO0 and MOSI signals? Are there any modifications needed to the FTP server application code in order to pass the SPI data?
  2. Can i directly pass the parallel data on pins D0, D1,..D15? are there any modifications needed to the FTP server application code in order to pass the parallel data?

please reply to email id: nagendra@ftdautomation.com

bingdo commented 9 years ago

Dear svnagendra2003

I guess that maybe you download project files by "Download ZIP" in a browser. If you use "Download ZIP" in a browser, there are no source files of ioLibrary. You must copy source files of ioLibrary to an ioLibrary directory on project. https://github.com/Wiznet/ioLibrary_Driver

You can use SPI0. Please refer to "spiHandler.c". D0~D15 are digital pins. You must control D0~D15 yourself to pass the parallel data.

Thanks.

bingdo commented 9 years ago

Refer to https://www.youtube.com/watch?v=mt815RBGdsA Thanks.

svnagendra2003 commented 9 years ago

Hi, I was able to connect to the FTP server now. But in the server, the default directory is shown as / and a folder inside the directory by name $Recycle.bin directory. I am not able to write any new files on to the server. If i select files and if i upload the files to the server, in the Terminal i get the message as file transfer successful, but i cannot find any of the files in the / directory of the server. please let us know what is the issue and the proper solution. I am going to connect the SPI related signals like SCK0, MISO0 and MOSI0. I am keen to know how will the data appear through FTP. Please let us know.

image

bingdo commented 9 years ago

If you try to test the FTP Server on W5500EVB, you have to activate the F_FILESYSTEM feature. Please change "ftpd.h" file and recompile.

Thanks.

svnagendra2003 commented 9 years ago

Hi, Please answer to my following questions on high priority:

bingdo commented 9 years ago

Please open "ftpd.h" file and change like the following.

define F_FILESYSTEM // If your target support a file system, you have to activate this feature and implement.

I don't know your question. FTP Server is the application protocol. It's not related with SPI interface. If you mean a FatFS feature, refer to "dataflashHandler.c" file in source.

Thanks.

svnagendra2003 commented 9 years ago

Hello,

If you can enable data logging of UART RX port and store them into a text file, that would do our job.

Through FTP server program, we can access the logged data file in client PC.

Please make the changes in the FTP server code accordingly and share it.

Thanks & Regards

Nagendra.S.V

bingdo commented 9 years ago

Dear svnagendra2003

I think that you need our another solution. I suggest the W550S2E module. http://www.shopwiznet.com/wiz550s2e

Your FPGA->UART->WIZ550S2E module(TCP Client)->Ethernet->TCP Server(PC)

Thanks.

svnagendra2003 commented 9 years ago

Hi,

In your previous github thread, you have mentioned “I don't know your question. FTP Server is the application protocol. It's not related with SPI interface. If you mean a FatFS feature, refer to "dataflashHandler.c" file in source”

As per that instruction, can you please let us know how to enable the FatFS feature in dataflashHandler?

If FatFS feature is enabled, whether I will be able to log SPI data into a file format?

Please make necessary changes for that and send us the file as quickly as possible.

At this point of time, we are not in a position to purchase another board since our deliveries are already delayed.

We are VHDL engineers and have no knowledge of embedded processors. We purchased this W5500-EVB board since the FTP server demo programme was available.

Once our evaluation phase is completed, we will order for more than 1000 pieces of W5500 chips.

Thanks & Regards

Nagendra.S.V

bingdo commented 9 years ago

Already FatFS feature is included in github project. Refer to f_xxx functions in "ff.c" file. But if you use FatFS to logging, there is a risk about storage size. A size of data flash in W5500EVB is 512Kbytes. Maybe you can use 460Kbyte as available size. You cannot save log data to storage continuously.

I suggest the WIZ550S2E module again. The WIZ550S2E module is a commerial product for "serial to Ethernet" feature. You can transfer logging data to Server PC through WIZ550S2E module without saving. If you need more information, please contact to WIZnet HK or US.

This FTP Server project is Open Source Project. We do not support each customer's project.

Thanks. wiz550s2emodule

svnagendra2003 commented 9 years ago

If we are able to save the data for a while, it is OK at present. I referred to ff.c and could not understand where i can enable logging. Please let me know how i can enable the FatFS for dataflash

svnagendra2003 commented 9 years ago

If we are able to save the data for a while, it is OK at present. I referred to ff.c and could not understand where i can enable logging. Please let me know how i can enable the FatFS for dataflash