-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it compatible with TinyFPGAs #171
Comments
Hello, First step is to add this board in Apio. I will think how to integrate its python programmer. It would be nice to add board checking for this TinyFPGA, is it a FTDI based board? Second step is to integrate this board in Icestudio: pinout and drivers/configuration for the board. If you want to contribute, you can try Apio integration, and also the pinout (pcf) for Icestudio. Regards! |
Hi Jesus, I am the TinyFPGA developer. The board is not FTDI based, it implements it’s own USB device in the FPGA fabric as a bootloader. When a user design is running the USB bootloader is no longer in the fabric and is stored in the SPI configuration flash. If anyone is working on this already I would love to help. If not, I’ll take a look at how much work it would be to integrate myself and submit a pull request. Using the pyserial library you can identify the board by its USB VID and PID combination. The board has its own Python library for programming it. |
Hi, |
@Jesus89, I have updated a local repo of apio as well as icestudio with the TinyFPGA B2 board information. How do I setup icestudio to use a custom build of apio and not one that it can automatically install? Also, the build fails on bash for windows...looks like i'll be installing a virtual machine ;) |
Hi @tinyfpga, Icestudio uses a python virtualenv to install its own apio version. You can create the virtualenv and install all the packages in the menu Tools > Toolchain > Install. Then you should have an You can activate the virtualenv by executing this console command in the I use Linux to develop both projects, but it should be working also for windows. Please, paste the error output in a pastebin or something like that to check what is going on on windows. |
+ you can use also an external apio (installed in your machine) by adding its path here. For example |
@Jesus89, I pointed it to the apio that I built and that worked for running "Tools -> Verify" in the Icestudio GUI. However, when it ran "Tools -> Build" it complained that it didn't recognize the board. I worked around this by copying my apio.exe binary to the virtual environment and replacing the one that was there. Once I did that both Verify and Build worked. However, when I try to run "Tools -> Upload" I receive an error in the GUI and I'm not sure how to get more detailed information: "Error: expected a string or other character buffer object". I am not very familiar with nodejs, I was looking for a logfile somewhere but it wasn't obvious where it might be. |
Hi. When you execute Toolchain > Upload this runs the commmand "apio upload -b yourboard" so the error is launched by apio. I recommend you to get the board working with apio and then Icestudio. You can push your apio changes in a feature-branch in your fork so I can take a look. |
Closed in #193. |
Hi,
I think the following project is the most hopeful open source FPGA implementation at this point :
https://github.com/tinyfpga/TinyFPGA-B-Series
I bought one (B2, based on iC40LP8K) and would be very pleased to help in any way I can to integrate it in the iCEEStudio project (making some tests for exemple, or completing files if i'm guided).
Thank you
The text was updated successfully, but these errors were encountered: