Giter VIP home page Giter VIP logo

Comments (18)

trabucayre avatar trabucayre commented on May 27, 2024 1

I have received my board today.
After a quick search on gowin website I have found a doc about protocol (instructions to send).
It looks really similar to FTDI's MPSSE.
I think it's not possible to use directly libftdi but this seems not really hard to implement. I will try it ASAP.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

I have already seen this board, and I think I have to bought one (or ask for free sample ;-) ).
The main issue with gowin's stuff is the totally lake of documentations, most of the time you have partial/incomplete, wrong documentations.

from openfpgaloader.

janschiefer avatar janschiefer commented on May 27, 2024

Do you speak Mandarin? ... https://cdn.gowinsemi.com.cn/UG1003.pdf

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

Not really, but this doc explain how to use a gowin's library to use this chip no?
My interest isn't to use an external library but implement the protocol ;-)
But I assume wireshark will be my friend.

from openfpgaloader.

janschiefer avatar janschiefer commented on May 27, 2024

Very nice!

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

I also bought this cool board, I'm trying to use it with the toolchain yosis+nextpnr+gowin_pack+openFPGAloader.
The GW1NSR-4C is supported by the apicula project but I'm struggling to flash the bitstream to the FPGA through the Gowin Programmer as it is complaining about a wrong ID CODE and I don't know why.

So I'm waiting that the GWU2X will be supported by openFPGAloader because it is a really cool project, I can help with testing stuff.

Also, I found a little bit of documentation here that should be helpful to add the support.

Thank you.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

Hi.
Gowin GWU2X and lilygo T-FPGA are now supported.
Is it good to you?

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

Yes, thank you, I tried flashing to SRAM with -m and it works, when I try to write to flash with -f I get, during the Erase FLASH phase, Write failed with error -7, Failed to program FPGA: std:exception

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

Thanks for your feedback: I will try with a different computer to see if it's an hardware issue.
Could you share your setup ? OS / VM ?
Thnaks

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

I tried with this example https://github.com/Xinyuan-LilyGO/T-FPGA/tree/main/example/FPGA/led/src.
I synthesized it with the Gowin IDE educational 1.9.9 on Windows and then I used Ubuntu 22.04 on WSL to flash it, using openFPGALoader

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

Thanks for informations. Is it possible to you to test with a native linux? I have seen lot of issues with WSL (and I have to find why).

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

I noticed this strange behavior, it seems that when I use the verbose flag the IDCODE gets corrupted
immagine

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

And then, trying to detect the FPGA with openFPGALoader --detect --cable gwu2x gives the same error

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

This is the output I get when, after rebooting the device, I try to flash it with -f -v so in verbose mode
immagine

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

This timeout (-7) is fixed: stupid optimisation before pushing: 65356== 0x10000 ie needs 17bits but I have used a 16bits variable...
But now it seems to have a problem with the bitstream: I obtain an error (mismatch between read checksum and computed). Maybe another issue with a variable or a size. But I have to check if the same FPGA and an FTDI I have a similar error or if it's gwu2x related bug.

from openfpgaloader.

zJudGenie avatar zJudGenie commented on May 27, 2024

If you have an FTDI and a 13-pin flat cable you can directly access JTAG lanes using the white connector as you can see here
immagine

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

Unfortunately no. I will switch to my tangNano 4k to check before continuing to debug this board.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 27, 2024

With tangnano4k Flash sequence is working: I have to recheck everything here to see where is issue with gwu2x.

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.