Giter VIP home page Giter VIP logo

Comments (10)

trabucayre avatar trabucayre commented on May 28, 2024

Hi,
I have tried to load and flash bitstream on ecpix5 successfully.
One thing strange here: ecpix5 has a ft2232h not a ft4232.

Anyway: errors reported are produces at libftdi/libusb level, try to change your USB cable or (I see you uses a *VMWARE VM) trying first a direct access (msys2 package): sometime USB is unstable with a virtual machine (and if your VM report a ft4232 instead of a ft2232 maybe communication between libftdi and device is broken/bad).

from openfpgaloader.

jeremyherbert avatar jeremyherbert commented on May 28, 2024

Thanks for your reply.

I have just tried on a non-VM system (Ubuntu 22.04) with a different cable and it still shows the same errors. And my ECPIX definitely has a FT4232 - I can see the markings on the IC directly.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

It's really weird: most of the time I see this type of error it's related to hardware... Could you try to reduce frequency?

For FT4232 vs FT2232 it's interesting, @lambdaconcept docs shows an FT2232 but maybe your board is a new release with a different cable.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

You use sudo to run openFPGALoader could you try:

  • switching to root (sudo /bin/bash) or
  • following this page to have access right as simple user

I don't remember exactly but I have already seen issue when using sudo

from openfpgaloader.

jeremyherbert avatar jeremyherbert commented on May 28, 2024

Yes, I was just trying sudo to try to see if there were any permissions issues. It does the same thing with non-sudo. My board is very recent, so I believe it is a new revision. Are there any other working boards that use an FT4232?

from openfpgaloader.

jeremyherbert avatar jeremyherbert commented on May 28, 2024

Ok, interesting update. If I connect the board and try to flash a bitfile at 6MHz, not only do the errors come up but the device de-enumerates...

However, at 1MHz it works fine. Even more confusingly, after I flash it with 1MHz, I can then run the command again at 6MHz and it works fine... I can also flash it at 30MHz as long as I flash it with 1MHz first.

Not quite sure what to make of this.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

Yes really interesting thing!
I have recently used a board with a ft4232 without noticing something like this -> I have to install an ubuntu (22.04) with docker to test if I'm able to reproduce this issue, and to see if it's openFPGALoader related or a regression somewhere between libftdi and libusb.

from openfpgaloader.

jeremyherbert avatar jeremyherbert commented on May 28, 2024

So I have been playing with this a bit because I figured like you that it was a hardware problem. It behaved the same with multiple different cables on multiple PCs. Just on a whim I tried unplugging and plugging the cable on the device side ~50 times - and this seems to have fixed it! I guess there was maybe some flux or debris inside the connector from manufacturing. Sorry, I probably should have checked this under the microscope or something earlier. I'm happy for you to close this, but perhaps this is a good opportunity to add a new board or something for the "R03" version of the ECPIX5 because it has the FT4232?

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

Great news! Thanks!
Yes sometime a simple debris may produces wrong behaviour :)
Yes. It make sense to add a new entry to this new ECPIX5's revision.
Thanks!

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

I have pushed a new board definition for R03 variant.

Thanks again

from openfpgaloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.