LSC

Members
  • Content count

    11
  • Joined

  • Last visited

  1. Is it possible to read/write user data to quad spi in .xml format and how to do it? Currently, I access it using fix number of bytes for each user data. We found that this method is not future proof as sequence may change. So, we are thinking of keeping the data in .xml format and only accessing it from there.
  2. thanks. the example is very interesting. we switched to microzed following the same tutorial for ethernet. it seems work for this. however, the client software is different, so it could be due to client or the arty.
  3. How to stream data using Arty Microblaze?

    hi thanks. we switched to microzed following the same tutorial for ethernet. it seems work for this. however, the client software is different, so it could be due to client or the arty.
  4. hi, thanks, i roughly make it work by modifying the examples from system.mss ps7_qpsi
  5. Hi, Currently, we are working on MicroZed board. I would like to know a way to read and write user data to QUAD SPI in c programming during run time. Does anyone know any example that I can refer to? We already programmed the BOOT.bin into it for auto loading during power cycle, but we also need a way to read/write user data on the fly without going thru the SDK. Regards,LSC
  6. Thanks. I am newbie here. So a lot of things are still unclear to me. I actually dont know how to go about with your suggestion above because a lot of technical thing that I yet to learn. I thought the TCP protocol should handle this collision? How am I going to handle it in the final c programming level? When this happen, I stop the client from sending message. So, I suppose the only possible collision is the acknowledgement from client which I dont have any control of, but do I still need to handle this? I tested the same client program communicating with server on linux platform before (server is on beaglebone), without this issue.
  7. Hi, I am following this tutorial "https://reference.digilentinc.com/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze-servers/start" and made some modification to the "echo.c" to send bytes of data to client every second. The server will repetitively send 240012 bytes every second. I experimented and found that there is a maximum allowable bytes to be sent in every "tcp_write" function called. So, I split the "tcp_write" function to be called multiple times (each time will send about 30000 bytes). So, it takes about 8-9 "tcp_write" function called every second. On my client side, I received all these 240012 bytes within 550ms. Initially, it is running normally and after a while, the server start sending all the 240012 bytes data very slowly. It takes >10 seconds to send all the 240012 bytes. It is inconsistent on when this happen. Sometimes, it can happen after 50 cycles and sometimes it can happen after 500 cycles. I also tested this by storing the SDK to the SPI, but it still happens. I reconnect my client and the problem exist in the first cycle itself. I rerun the server and the problem disappear and only appear after sometime. So, it means the problem exists in Arty server. I dont find any memory leakage in my coding in "echo.c". The only settings I changed in "system.mss" are "tcp_snd_buffer" = 32000 and "tcp_mss" = 2000. My main question is: 1) How do I troubleshoot and solve this? Has anyone use the server this way without issue? Other questions: 2) Can I send more bytes in 1 "tcp_write" function called? I noticed the limit it can send is around 31000 bytes after playing with the "system.mss" settings, "tcp_snd_buffer" = 32000 and "tcp_mss" = 2000. 3) I noticed the client side receive the data in batches of 1460 bytes. So it means, the client may receive all the 240012 bytes in 240012/1460 = 165 times. How do I enable the server to send more than 1460 bytes each batch? FYI, I suspect the 1460 bytes is limited by the server and not the client because I used the same client for other application and I never encounter that it was limited to 1460 bytes.
  8. Sorry for the topic and please ignore it. I need to add the QUAD SPI first. Now still experimenting the boot. Seems no response
  9. Hi, I am following this tutorial "https://reference.digilentinc.com/learn/programmable-logic/tutorials/htsspisf/start". However, when I reach the "Templates" page, the "SREC SPI Bootloader" option has the "Next" button disabled. I dont know what is wrong, thus I need help. I attached here the screenshot showing the "Next" button disabled. My objective is to start the sdk project automatically everytime power cycle instead of running from SDK "Run As". Is this the correct tutorial?
  10. Hi, I just started to learn on Arty. I know how to create a server from this "Arty - Getting Started with Microblaze Servers Arty - Getting Started with Microblaze Servers " tutorial. However, I found the server client method is a bit slow to send bytes of data continuously. It takes at least 50ms to send data and receive acknowledgement, before I can send the next batch of data. Is there a data streaming method tutorial that I can refer to. Or, is it even possible to do data streaming on this Arty? Need advice from the expert out there. Thank you!