amkichu Posted November 20, 2017 Share Posted November 20, 2017 Does anyone have the project for the initial project containing all peripheral interfacing? Link to comment Share on other sites More sharing options...
amkichu Posted November 27, 2017 Author Share Posted November 27, 2017 Which part of echo_server.c should I do to modify to tailor it to my own application? My real requirement is to establish a TCP connection between Microblaze and Matlab to exchange some data between them via AXI_GPIO (8-32 bit data). Link to comment Share on other sites More sharing options...
jpeyron Posted December 4, 2017 Share Posted December 4, 2017 Hi @amkichu, Unfortunately, we do not have the time to be able to update the file to work with these changes. I believe you could create a helper function that checks the state of your input and then call the appropriate function. thank you, Jon Link to comment Share on other sites More sharing options...
amkichu Posted December 4, 2017 Author Share Posted December 4, 2017 On 12/1/2017 at 8:16 PM, jpeyron said: Hopefully this will help you with your project. Thanks @jpeyron It helped a lot for me. I have the task list like this. I will send 1 at first, then 2, then 3 and I have a switch that executes based on the received data. I have my customized code for nios2_socket_server example like: Quote while (conn->rx_wr_pos < conn->rx_rd_pos); // commands are separated by new lines. Get rid of them. c = (char) *conn->rx_rd_pos++; Nr = c - '0'; //printf2("Menu number %i - ", Nr); switch (Nr) Can I get the echo code modified like this flow (void SSS_exec_command(SSSConn* conn) function) as I am not an expert in C programming? niosII_simple_socket_server.c Link to comment Share on other sites More sharing options...
jpeyron Posted December 1, 2017 Share Posted December 1, 2017 Hi @amkichu, I have attached a modified echo.c file that does reads in what you type from the serial terminal and prints something different back based on what you typed in the serial terminal. Hopefully this will help you with your project. cheers, Jon echo.txt Link to comment Share on other sites More sharing options...
amkichu Posted December 1, 2017 Author Share Posted December 1, 2017 @jpeyron Thanks for the reply! How can I modify the echo.c such that instead of doing some echo back, I need to have some action. Say I send a value 3 via telnet, MicroBlaze receives it and pass the data to LED_GPIO. Thanks in advance! Link to comment Share on other sites More sharing options...
jpeyron Posted November 30, 2017 Share Posted November 30, 2017 Hi @amkichu, I have not used the lwip echo server with the anvyl. I have used the lwip echo server with many of our other boards. When using the lwip with the other boards the uart communication is a good way to trouble shoot and verify set up of the lwip echo server. thank you, Jon Link to comment Share on other sites More sharing options...
amkichu Posted November 30, 2017 Author Share Posted November 30, 2017 49 minutes ago, jpeyron said: what is the difference between these two approaches My question was: why there was a need for serial port connection to establish before an ethernet connection to be verified via Telnet in the first approach though it worked well with the latter? Link to comment Share on other sites More sharing options...
jpeyron Posted November 30, 2017 Share Posted November 30, 2017 Hi @amkichu, I not sure exactly what you are asking "what is the difference between these two approaches". I know that Putty can use different hardware on the PC. Putty can communicate through the ethernet as well as the usb uart. Ethernet is a more complicated communication to set up that can move large amounts of data at high speeds. UART is a less complicated communication type to set up that is not typically used with transferring large amounts of data and is much slower then ethernet. It depends on your needs/ability as to which communication type is right for you. I would suggest to look here and here for more specific information about ethernet and uart communication. thank you, Jon Link to comment Share on other sites More sharing options...
amkichu Posted November 30, 2017 Author Share Posted November 30, 2017 @elodg Do you have 11.Anvyl_LWIP_Demo in AXI interface instead of PLB available with this example? Link to comment Share on other sites More sharing options...
amkichu Posted November 30, 2017 Author Share Posted November 30, 2017 Curious to ask, What will happen to 10.Anvyl_Ethernet_Demo.zip without UART? Now we are establishing Serial Port connection (first putty) and then using Telnet (second putty) to check ethernet connection. I deleted the UART instance in XPS and tested the ethernet connection establishing Telnet connection using only one Putty? What is the difference between these two approaches? Link to comment Share on other sites More sharing options...
jpeyron Posted November 27, 2017 Share Posted November 27, 2017 Hi @amkichu, I am glad you were able to get it going. Here and here are forums that talks about using the Ethernet with the Anvyl. I would suggest looking at examples like here. cheers, Jon Link to comment Share on other sites More sharing options...
amkichu Posted November 24, 2017 Author Share Posted November 24, 2017 On 11/21/2017 at 4:04 PM, elodg said: Exporting to SDK works, but BSP needs to be regenerated to upgrade to the latest library version I did this step many times before posting in this forum, but today I succeeded with this step. Link to comment Share on other sites More sharing options...
amkichu Posted November 24, 2017 Author Share Posted November 24, 2017 @elodg Thanks for your reply! I tried with Antivirus (Avira) turning off and other networks (Wi-Fi) and doing the same by generating new bsp and project. Fortunately, it is successful and I could open it up with telnet also. I repeat the whole with turning on the antivirus and Wi-Fi, but it gives the below result. Thanks for your support. I guess that the regenerating of bsp and project made it right. Thanks again. If I am not wrong I think I need to modify echo.c for adapting the code for my own applications. Link to comment Share on other sites More sharing options...
elodg Posted November 23, 2017 Share Posted November 23, 2017 Indeed, the project included in the workspace does not work. But if you create a new "lwip echo server" example project in SDK along with a new BSP, that works. Make sure any software firewall is off or allows ping packets. Link to comment Share on other sites More sharing options...
amkichu Posted November 23, 2017 Author Share Posted November 23, 2017 19 hours ago, elodg said: Does the lwip server bind successfully to the IP I tried binding in three ways: 1. Attaching ELF in Microblaze through EDK and downloading bitstream. 2. Downloading bitstream without ELF file in EDK and Program FPGA in SDK. 3. I had another attempt as per Anvyl_demo_doc.pdf. After programming the bitstream without ELF file and then issuing the command connect mb mdm via XMD , it gives the following error in connectmbmdm.jpg. By running "xdisconnect -cable" and starting over again gives the same error. Is there any other way to check for the binding? 20 hours ago, elodg said: See what the terminal says on the USB/UART port of the Anvyl By selecting the COM4 (from Device manager) port and the following settings (from Anvyl_demo_doc.pdf), Putty is never getting connected to the FPGA board. I tried with a simple hello world display also. a. Baud rate: 115200 b. Parity: none c. Data bit: 8 d. Flow control: none e. Stop: 1 bit Link to comment Share on other sites More sharing options...
elodg Posted November 22, 2017 Share Posted November 22, 2017 See what the terminal says on the USB/UART port of the Anvyl. Does the lwip server bind successfully to the IP? Link to comment Share on other sites More sharing options...
amkichu Posted November 22, 2017 Author Share Posted November 22, 2017 Dear @elodg Thanks to the attached upgraded project of ethernet demo and it compiled well in EDK (XPS) and in SDK (ISE 14.7). I will brief how I proceeded with the project and what problems I faced? I started with Run DRCs in EDK and then to Generate Netlist. After obtaining XST Completed with no errors with a few warnings, I proceeded to Generate Bitstream. After completing the Generate Bitstream with no errors, I proceeded to Export Design & Launch SDK. I regenerated the whole BSP and project. The elf is well generated and I added the generated elf file to Imp Executable of Microblaze in EDK (XPS). Then, I Update Bitstream so that elf and bit files are linked and Download Bitstream to the FPGA. I configured the IPV4 settings on my laptop to the following as per the Anvyl_demo_doc.pdf. As per main.c, IP address of the FPGA is 192.168.1.10. Opening XMD and executing ping 192.168.1.10, I got like below. I also tried the other way also. Download Bitstream without attaching an elf file and then Program FPGA after building the project in SDK. But the result remains same. Also, I tried pinging from Command Prompt and obtained the same result but with 100% loss. I expect a reply from 192.168.1.10 if the project is compiled or the configuration is in the correct way. Please help me in finding where I made a trouble and how to rectify it. Thanks in advance Link to comment Share on other sites More sharing options...
elodg Posted November 21, 2017 Share Posted November 21, 2017 What are you talking about? I opened 10.Anvyl_Ethernet_Demo in XPS 14.7, and upgraded the project to the latest version along with IPs. There are no IPs missing, but there is an error message upon bitstream generation that is answered here: https://www.xilinx.com/support/answers/62380.html Just double-click on axi_ethernetlite_0 and uncheck Include PHY I/O constraints, as described in the AR. Then, the bitstream gets generated successfully. Exporting to SDK works, but BSP needs to be regenerated to upgrade to the latest library version. Then the application compiles as well. I don't have a board at hand, but you can try it yourself using the upgraded project I attached. 10.Anvyl_Ethernet_Demo.zip Link to comment Share on other sites More sharing options...
amkichu Posted November 21, 2017 Author Share Posted November 21, 2017 15 hours ago, jpeyron said: Hi @amkichu, The only thing I have been able to find is Here is the Anvyl Demo Project Suite. I have reached out to my co-works to see if we have an OOB demo that contains all peripheral interfacing. thank you, Jon Thanks, @jpeyron for your reply! Can I get a working version of the project Ethernet connection also? Both 10.Anvyl_Ethernet_Demo and 11.Anvyl_LWIP_Demo are not working in XPS 14.7 (ISE Design Suite 14.7) where some of the IPs in these demo files are removed by Xilinx, so a connection cannot be established. Link to comment Share on other sites More sharing options...
jpeyron Posted November 20, 2017 Share Posted November 20, 2017 Hi @amkichu, The only thing I have been able to find is Here is the Anvyl Demo Project Suite. I have reached out to my co-works to see if we have an OOB demo that contains all peripheral interfacing. thank you, Jon Link to comment Share on other sites More sharing options...
Question
amkichu
Does anyone have the project for the initial project containing all peripheral interfacing?
Link to comment
Share on other sites
20 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.