1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Resolved] Ask about using Ft2232 SPI for reading/writing to Flash on Neso Artix 7

Discussion in 'FPGA Boards' started by Vu Quang Huy, Nov 16, 2017.

Thread Status:
Not open for further replies.
  1. Vu Quang Huy

    Vu Quang Huy New Member

    Joined:
    Nov 16, 2017
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Vietnam
    Hello,

    I use Neso Artix7 FPGA board for my project, and I need to both read/write files on FLASH to PC via USB 2.0 FT2232H:

    (Software on PC Windows/Linux) <---- USB 2.0 protocol ----> FT2232H <---SPI protocol---> FLASH

    I config Channel A of ft2232 as SPI with D2XX driver.

    I have spent more than 2 weeks to write a PC program to read/write Flash using D2XX, LIBMPSSE-SPI FT2232 lib with no success!

    Does anyone know how to do this?

    Thank you so much.
     
  2. rohith

    rohith Administrator Staff Member

    Joined:
    Mar 3, 2016
    Messages:
    66
    Likes Received:
    11
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Bangalore
    Hi Vu Quang,

    Please check out this excellent open source tool by [amilkovich] which supports reading/writing Saturn, Neso and Skoll flash. You can get the correct logic from the source code of that tool.

    Tool: https://github.com/amilkovich/numato-loader

    Thanks!
     
    Vu Quang Huy likes this.
  3. Vu Quang Huy

    Vu Quang Huy New Member

    Joined:
    Nov 16, 2017
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Vietnam
    I have done successfully read write from Channel A SPI to flash with the code. Thank you so much for your reply.

    For an image of resoultion (640x480x2byte): Reading from Flash to PC takes ~1 second, writing takes ~25s. Do you have any idea to speed up the reading/writing process?
     
    Last edited: Nov 18, 2017
    rohith likes this.
  4. rohith

    rohith Administrator Staff Member

    Joined:
    Mar 3, 2016
    Messages:
    66
    Likes Received:
    11
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Bangalore
    Hi Vu Quang,

    It's good to know that you were able to finally read and write the SPI flash!

    As for the ideas on increasing the speed, unfortunately I'm not very experienced in that area, so I'm afraid I cannot help you with that. You might want to check out on internet.

    -Rohit
     
Thread Status:
Not open for further replies.

Share This Page