Jump to content
  • 0

Read/Write over USB Zybo Z7


Scottie
Share

    Question

    Hi All,

    I'm working on a project that requires me to read a file from a PC (mac, windows, or linux), or external thumb drive onto Xilinx Zybo Z7 board. The communication does not have to be over USB however it does have to be able to read a file either on a USB or a Computer as well as write to that same device. I've looked at several different forums and can't find anything that would make this seem doable. Any help in this matter would be greatly appreciated, thanks for your help.

    If you could provide an example of a small working project that would be immeasurably helpful.

    Link to comment
    Share on other sites

    5 answers to this question

    Recommended Posts

    • 0

    Hi@Scottie,

    I would suggest to use Petalinux if possible. Do you have the zybo-z7-20 or zybo-z7-10? If you have the zybo-z7-20 we have a petalinux project availablehere.Hereis the resource center for the Zybo Z7. I would not suggest trying to use the the usb OTG without petalinux. You should be able to use the ethernet for this project using the zynq processor if you are not inclined to use petalinux. Unfortunately the furthest I have done with the ethernet on our boards is an echo server so there is not a lot of examples for this.

    thank you,

    Jon

    Link to comment
    Share on other sites

    • 0

    Hi@jpeyron,

    We are using the Zybo-z7-10 board. Looking very briefly at the petalinux project you linked above it seems that communication over ethernet would be our best bet. The end goal of this project is to be able to read and write to a plaintext file from a thumb drive or any OS on a computer. Unless I am misunderstanding petalinux cannot read files that haven't been properly formatted for that system, correct? If we are communicating over ethernet how might we go about that?

    Thanks for your help.

    Link to comment
    Share on other sites

    • 0

    Hi@Scottie,

    I am not aware of any restriction with files in that way. I have reached out to more experience embedded linux engineers to see if they have any additional input.Here,hereare some documentation that discusses file transfers.Hereis a xilinx forum thread that discuses this as well.

    cheers,

    Jon

    Link to comment
    Share on other sites

    • 0

    @jpeyron

    I am also struggling to read/write data from/to USB flash drive connected to ZYBO. I have 7Z-20 and Petalinux v2018.3 installed on Ubuntu 16.04.4. I am wondering which commands do I need to run in user application to access directories and files in the attached USB external drive.

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    Share

    ×
    ×
    • Create New...
    Baidu