Icestudio CI

379 views
Skip to first unread message

charli va

unread,
Jun 3, 2021, 4:07:25 AM6/3/21
to fpga-wars-explora...@googlegroups.com
(In English below)

¡Hola a todos!

os escribo para comunicaros que he estado trabajando en poner en marcha el entorno de integración continua de Icestudio bajo las Actions de Github.

Esto quiere decir que ahora con cada actualización de código de la rama develop se generarán automáticamente los instaladores, de forma que calquiera podrá probar fácilmente cualquier cosa que se vaya modificando o mejorando.

Para facilitar la descarga de los paquetes he automatizado también que en https://downloads.icestudio.io  se actualice la tabla automáticamente con los paquetes binarios disponibles.

Esto lo he hecho así porque no queremos generar releases con cada compilación que era una alternativa y para descargar los paquetes generados por las actions hay que tener obligatoriamente una cuenta en github, como en nuestro caso en la comunidad hay un perfil muy heterogéneo de desarrolladores avanzados y otros no tanto, desde este sitio se puede hacer una descarga sin ningún tipo de problema.

En las próximas wips modificaré el detector de nueva versión para que chequee contra las actions y así informe a los usuarios de las versioines wip de que existe una nueva. También estoy investigando el poder auto actualizar la instalación existente.

Espero que lo disfruteis, ya no habrá que esperar más tiempo a poder probar las mejoras que se incorporen durante el desarrollo.

Gracias!



English:

Hello everyone!
I am writing to inform you that I have been working on the launch of the Icestudio continuous integration environment under Github Actions.

This means that now, with each code update from the development branch, the installers will be generated automatically, so that anyone can easily test anything that is modified or improved.

To facilitate the download of the packages I have also automated that in https://downloads.icestudio.io the table is automatically updated with the available binary packages.

I have done it this way because we do not want to generate releases with each compilation, which was an alternative, and to download the packages generated by the actions it is necessary to have a github account, as in our case in the community there is a very heterogeneous profile of advanced developers and others not so much, from this site they can be downloaded without any problem.

In the next wips, I will modify the new version listener to check for actions and thus inform users of new wip versions.

I am also investigating the possibility of automatically updating the existing installation.

I hope you enjoy it, and no one will have to wait any longer to be able to test the improvements that are incorporated during development.

Thanks!

Juan Gonzalez Gomez

unread,
Jun 3, 2021, 4:18:42 AM6/3/21
to FPGA-WARS: explorando el lado libre
Gracias charli! 

Acabo de bajar el appimage para linux. Lo he probado en Ubuntu 20.04 y todo ok. Ahí se pueden ver las mejoras de joaquim

Saludos, Obijuan

--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/CAEQ-VCasg%2B%3D1CSgYoSPWxFUn93-hfY5Uh1GoKJvxDeSRrEt5Sg%40mail.gmail.com.

Jo mo

unread,
Jun 3, 2021, 5:21:59 AM6/3/21
to FPGAwars: explorando el lado libre
Great charli !  :-)
Continuous integration looks interesting for making our small mods "in common".

I will also download and try these last executables tonight (on my virtual machine first, as i do not want to erase some mods i may have made on my main icestudio install).

For the fact that the version number remains the same even if there are modifications, we could maybe add the date to the "icestudio about" panel.
Something like :   

Version: 0.5.1w210224 ( 2021-05-31T01:48:20Z )
or
Version: 0.5.1w210224 generated on 2021-05-31T01:48:20Z

But for me it is not critical,  Someone wanting to check if he has the last version can:
- compare the date of the last version available on https://downloads.icestudio.io/  and the date of creation of the file icestudio.exe  on his system.

Thanks again to you both, and have a good day.

Joaquim

charli va

unread,
Jun 3, 2021, 11:35:13 AM6/3/21
to fpga-wars-explora...@googlegroups.com
Thanks Jo!

i'm working in the icestudio version id , for example 0.5.1w210224  will be dynamic and changebefore build , the last numbers from the "w" will be the date.

Thanks for your tests!

charli va

unread,
Jun 3, 2021, 9:36:48 PM6/3/21
to fpga-wars-explora...@googlegroups.com
Hello! now the version is suffixed with a timestamp :) and is displayed within Icestudio.

Any ideas to improve the CI are very welcome!

I have also created a binary compilation task for linux64 independently.

This is very useful in order to develop and package a version for testing, before launching the push or pull request, make sure that the package is generated correctly, at least on Linux.

In this packaging I have eliminated the inclusion of thel toolchain, so we can generate a package very quickly.

The command to generate only the linux64 package is:

npm run buildLinux64

This generates the installation packages in the dist folder.

The command should work on any modern distro, depending on the distribution you may have to install some additional operating system packages like squashfs-tools

Thanks!

Democrito

unread,
Jun 4, 2021, 1:45:16 AM6/4/21
to FPGAwars: explorando el lado libre
Hola Carlos,

Descargué la nueva versión y he estado trabajando un poco y todo normal. La percepción que he tenido es que se ha copiado encima de la existente (no hice desinstalación). Y durante el diseño lo único que he notado es que las etiquetas se han enrocado, es decir, que si ahora pides un "input" de etiqueta sale como "output" y viceversa, pero esto es una cuestión de relatividad, es decir, de cómo se mire, si desde el punto de vista de la etiqueta o del elemento que quieres conectar esa etiqueta, así que ningún problema.

Saludos y siempre gracias!

charli va

unread,
Jun 4, 2021, 3:24:18 AM6/4/21
to fpga-wars-explora...@googlegroups.com
Hola democrito! Muchas gracias por probarlo!

Lo de las etiquetas es un cambio que añadió el usuario Joaquim porque decía que de la otra forma es más liosa, se comento en un hilo estas semanas pasadas y por votación popular XD se aceptó el cambio.

Así que ahora hay que ver las etiquetas más con el sentido de entrada/salida más que de sentido de la información.



--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.

Democrito

unread,
Jun 4, 2021, 3:30:20 AM6/4/21
to FPGAwars: explorando el lado libre
Me parece bien porque las primeras veces que las usé también tenía esa forma de verlo.

Jo mo

unread,
Jun 4, 2021, 4:32:58 AM6/4/21
to FPGAwars: explorando el lado libre
Hello Carlos,

So i tried the last version on win7, and as we have now the colorlight board included (thanks to Benito' effort) i could program my colorlight i5 (FT2232)) board. ( With a bit of fiddling during drivers installation with zadig, as usual :-)).

For Linux Lubuntu, just executing the app file. icetudio launches well;
When i build the led example for the alhambra board it builds ok!
But when i build the same for the colorlight board i am getting an error (see picture).

Now, for my win7 machine, i just have to redo "manually" my mods to show correctly the ECP5 ressources usage.
Carlos we discussed  about the addition of this mod in the code. (see Fernando's colorlight thread, around the 3th of may).
if you remember i had problems including an if statement in the html file to make the switch between ice40 and ECP5 fpga families.
if you could not work on that subject for you next Wip, i can try now to find a solution ( by trying to put the if/case statement in the js file).

@ Democrito, yes it is my fault ;-).
I thought about having the same logic as for the output/input ports.

Thanks and have a good day guys

Joaquim
Capture.JPG

charli va

unread,
Jun 4, 2021, 12:33:35 PM6/4/21
to fpga-wars-explora...@googlegroups.com
Thanks Jo for your test!, i will try to reproduce your example and find a bug.

About the "if statemen" i'm work on it soon.

Thanks for all!

--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.

charli va

unread,
Jun 4, 2021, 1:57:32 PM6/4/21
to fpga-wars-explora...@googlegroups.com
Hi at all! there is a new WIP available 😎 !

i'm fix the error but you need to  mod apio to work (now , board is not recognized for apio in the standard way), but thanks because you catch a bug for boards with non regular characters in its name.

To apply your changes in the html, I'm needing your files, because the link you send with the code  has expired, could you send again?

Good weekend!

Jo mo

unread,
Jun 4, 2021, 3:26:32 PM6/4/21
to FPGAwars: explorando el lado libre
Ola Carlos,

Here is the link. of my last version of the two files.  https://drive.google.com/file/d/1ObAQ9YCyTvqipTmQ2EyJv7ycHaUfj8n5/view?usp=sharing

Thank for the new wip (not yet tried)

Have a good evening

Joaquim

Jo mo

unread,
Jun 4, 2021, 3:33:31 PM6/4/21
to FPGAwars: explorando el lado libre

But be carrefull, as you reorganise the files (this past month)  for the last icestudio version,  my files may not be fully usable as they are. but you can copy paste parts of the code.

Obijuan

unread,
Jun 5, 2021, 5:55:28 AM6/5/21
to FPGAwars: explorando el lado libre
Tested the new wip 0.5.1w202106040506 on ubuntu 20.04 Linux. Everything went ok!

Thanks Charli! 😀️

Obijuan

Steinþór Hafsteinsson

unread,
Jun 5, 2021, 11:39:34 AM6/5/21
to fpga-wars-explora...@googlegroups.com
Thanks charli, things seem to be moving very well now.

_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656


--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.

Steinþór Hafsteinsson

unread,
Jun 5, 2021, 12:00:27 PM6/5/21
to fpga-wars-explora...@googlegroups.com
Hi Charli, I'm having problems downloading from https://downloads.icestudio.io/

following -> icestudio-0.5.1w202106040506-linux64.AppImage download link leads me to https://api.icestudio.io/artifacts/download/id/undefined

Similar results for all files on that page.

_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

Steinþór Hafsteinsson

unread,
Jun 5, 2021, 12:16:23 PM6/5/21
to fpga-wars-explora...@googlegroups.com
Hi again, more trouble from the troublemaker ;) 

I tried to clone the repo and build using npm run buildLinux64 and get the error:


[sgh@manjo icestudio]$ npm run buildLinux64

> ices...@0.5.1w buildLinux64
> grunt dist --platform=linux64



---------------------------
| BUILDING ONLY LINUX 64  |
---------------------------


Loading "node_webkit_builder.js" tasks...ERROR
>> Error: Cannot find module 'temp'
>> Require stack:
>> - /home/sgh/Documents/software/icestudio/node_modules/nw-builder/lib/utils.js
>> - /home/sgh/Documents/software/icestudio/node_modules/nw-builder/lib/index.js
>> - /home/sgh/Documents/software/icestudio/node_modules/nw-builder/index.js
>> - /home/sgh/Documents/software/icestudio/node_modules/grunt-nw-builder/tasks/node_webkit_builder.js
>> - /home/sgh/Documents/software/icestudio/node_modules/grunt/lib/grunt/task.js
>> - /home/sgh/Documents/software/icestudio/node_modules/grunt/lib/grunt.js
>> - /home/sgh/Documents/software/icestudio/node_modules/grunt-cli/bin/grunt
>> - /home/sgh/Documents/software/icestudio/node_modules/grunt/bin/grunt
Warning: Task "nwjs" not found. Use --force to continue.


I am running the latest Manjaro Gnome with npm and nodejs installed, I tried installing this nwjs from the AUR and still get the same error. I may be able to provide better info for a arch based build if you list what your build environment is and I can try to replicate it.

But I am liking this CI thing easier to be aware when things go wrong. Keep up the good work my friend :)

_____________________
Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

charli va

unread,
Jun 5, 2021, 5:33:43 PM6/5/21
to fpga-wars-explora...@googlegroups.com
Hello my friend! Your tests and comments are always welcome!

I am concerned about this error because I could not reproduce it and it is important that this page works perfectly.

The problem is that, as I mentioned, the links to the downloads of the packages generated by github cannot be obtained directly, so I had to make a gateway to retrieve the requested download link from github that said link is only available for a few minutes , which is not a problem since the gateway redirects you immediately.

The only thing I can think of is that your browser version is incompatible with the javascript that I have used, which would be very good to detect to make it 100% compatible.

I ask you a series of questions in case you can answer me and thus help me find the problem:

With which navevagor have you tried it? Version?

Do you have any antivirus installed?

Could you try chrome and hit F12 and in the developer console, go to the "Cosole tab" and see if any errors appear? (I sent you the screen you should see.

Good weekend!


Screenshot from 2021-06-05 23-26-41.png

charli va

unread,
Jun 5, 2021, 5:36:55 PM6/5/21
to fpga-wars-explora...@googlegroups.com
I haven't can reproduce your error, i think is a problem with the packages installed and the distribution, i'll try to install the same stack of you and i try it.

What version of node do you have installed?

Thanks!

charli va

unread,
Jun 5, 2021, 6:00:38 PM6/5/21
to fpga-wars-explora...@googlegroups.com
Hi Jom! there is a new wip with the color light full support ;)

Once you installed the new wip you need to update the toolchain from Tools->Toolchain->update

About FPGA resources issue, i'm working in a solution that i have been started some time ago that improve all boards information, i 'm finished in short.

Enjoy!

El vie, 4 jun 2021 a las 10:33, Jo mo (<joa...@gmail.com>) escribió:
--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.

Jo mo

unread,
Jun 5, 2021, 6:16:58 PM6/5/21
to FPGAwars: explorando el lado libre
Hello,

For me no download problems (using Firefox on Lubuntu or on win 10)

But on my Linux Lubuntu i running the last wip.
i add to install manually apio (because the toolchain update bring me to the "stuck at 50% error")
https://github.com/FPGAwars/icestudio/wiki/Installing-the-Toolchains-from-outside-icestudio

So the toolchain seems well installed.
But when  verify the Led example on the colorlight board, i get  a strange  unknown board error ??? :-)  see picture
remark: no problem when verifying the same led example for the Alhambra boards.

have a good night.

Capture.JPG

beni...@gmail.com

unread,
Jun 5, 2021, 10:25:24 PM6/5/21
to FPGAwars: explorando el lado libre
Joaquim,  

What version of Apio did you install ???
The last compiled version in Apio Github repository  is v6.0.0-post1, but that version doesn't include the pull request changes that I uploaded 18 days ago.
So it is normal that the board is unknown.

The solutions is NOT ONLY to compile Apio with the source code that is already updated in the Apio repository including the Colorlight boards
You must include too the last release of toolchain-ecp5,  of which I am waiting the ICestudio team add the 2 executable files for all Operating System that I commented in the issue  I post more than one month and a half ago. 

So, the only way to work in ICeStudio with the new Colorlight boards is adding by hand the files in Apio that I posted and update here
The files are the same for all SO unless the 2 executable files contained in toolchain-ecp5.zip.  

For Linux you need at least install the OpenFPGALoader binary that you can get from here, if you want to install ecpdap binary for Linux you can get from here, but ECPDAP is not necessary and not recommended because is too slow to program.
For Linux If you uses USB Blaster, do not forget to update the 80-fpga-ftdi.rules file that is included in the resources.zip file (see the point 3 of Apio installation in this guide)

For windows the use of USB Blaster or any FT Programmer requires to use ZADIG or the other option to install the LibUSbK driver in the JTAG part (follow this guide)

Best regards 

Fernando

charli va

unread,
Jun 6, 2021, 1:29:57 AM6/6/21
to fpga-wars-explora...@googlegroups.com
Hi jo! Could you activate debug info theme try to update apio and then send me the icestudio.log?

You have the instructions of how to actívate it in a pinned Issue at github icestudio issues page.

Its importante solved it from icestudio without a y “tricky” interaction.

Thanks!!

Steinþór Hafsteinsson

unread,
Jun 6, 2021, 2:04:32 AM6/6/21
to fpga-wars-explora...@googlegroups.com
Hi Charli I have version 16..1.0 of node and am using Chrome Version 91.0.4472.77 (Official Build) (64-bit)

I have other distros installed including Ubuntu. Once I am fully awake I will try experimenting further.

_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

Jo mo

unread,
Jun 6, 2021, 3:11:29 AM6/6/21
to FPGAwars: explorando el lado libre
Ola Carlos,

Strange its seems that my last message is crossed in the thread withy your message which seem to be sent 17 min before mine. Never-mind!

So i just tried your real last version(from 9PM yesterday). an there is no more "unknown board error".
But as Fernando expected,i have an error with open FPGAloader  see picture.

Capture.JPG
i joined the two log file of the days that i have.
Two files because i renamed (with the dropdown menu function) one or two days ago the log file and the info remains somewhere ?)

Thanks Fernando for your infos,
As ( for me this) is not urgent (because i have a fully working icestudio setup on win10, FT2232 no ecpdap :-))
i will let the time to Carlos try to solved this for the linux users.

Have a good sunday guys

Joaquim
log-icestud.log
icestudio.log

Steinþór Hafsteinsson

unread,
Jun 6, 2021, 3:12:53 AM6/6/21
to fpga-wars-explora...@googlegroups.com
Hi Charli. For the downloads there seems  to be some problem in my Chrome configuration, probably some extension, download works correctly in incognito mode. Icestudio launches properly but installation of toolchain fails at 50% when installing apio:

[sgh@manjo icestudio-0.5.1w202106050906-linux64]$ ./icestudio
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
[7527:7562:0606/070153.045418:ERROR:web_database_backend.cc(113)] Cannot initialize the web database: 2
[7527:7545:0606/070153.083714:ERROR:login_database.cc(579)] Password store database is too new, kCurrentVersionNumber=19, GetCompatibleVersionNumber=29
[7527:7545:0606/070153.083828:ERROR:password_store_default.cc(41)] Could not create/open login database.
[7527:7527:0606/070153.129784:ERROR:desktop_window_tree_host_x11.cc(1123)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[7527:7535:0606/070154.482955:ERROR:top_sites_backend.cc(92)] Failed to initialize database.
/bin/sh: line 1: /usr/local/Cellar/python/3.8.2/bin/python3: No such file or directory
/bin/sh: line 1: /usr/local/Cellar/python/3.7.7/bin/python3: No such file or directory


[sgh@manjo icestudio-0.5.1w202106050906-linux64]$ which python
/usr/bin/python
[sgh@manjo icestudio-0.5.1w202106050906-linux64]$ which python3
/usr/bin/python3
[sgh@manjo icestudio-0.5.1w202106050906-linux64]$ 

[sgh@manjo icestudio-0.5.1w202106050906-linux64]$ python -V
Python 3.9.5

Manually installing apio using pip does not work either.
_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

Steinþór Hafsteinsson

unread,
Jun 6, 2021, 11:18:18 AM6/6/21
to fpga-wars-explora...@googlegroups.com
Hi charli I found a workaround.

I searched my computer for old appimages and found icestudio-0.5.1n210107-linux64.AppImag
I ran the appimage from a cli and integrated it with my system
I then installed the toolchain
I downloaded and ran the latest appimage from site and integrated it and it runs properly.

I did have problems installing the toolchain after the latest nightly before this and I think I mentioned it before in here. To be clear, installing toolchain in icestudio on a computer with a fresh installation of linux fails after release 0.5.1n210107. If you install 0.5.1n210107 first and then the latest version of icestudio then toolchain installation works.

_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

charli va

unread,
Jun 7, 2021, 3:09:48 AM6/7/21
to fpga-wars-explora...@googlegroups.com
Hi Steinþór! could you try to clean your caches and try https://downloads.icestudio.io again? i think your browser is using older version of the page.

Please confirm if you could download after clean caches.

Thanks a lot!

charli va

unread,
Jun 7, 2021, 4:14:06 AM6/7/21
to fpga-wars-explora...@googlegroups.com
Hi guys! could you try the new wip with a fresh installation? i think i solved the problem with the 50% of stuck installation.

Please clean your installations and try the new wip.

Thanks!


El vie, 4 jun 2021 a las 10:33, Jo mo (<joa...@gmail.com>) escribió:
--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.

charli va

unread,
Jun 7, 2021, 4:23:01 AM6/7/21
to fpga-wars-explora...@googlegroups.com
Hi again!! the last wip needs git installed in the system, i'm working in a version without it.

Steinþór Hafsteinsson

unread,
Jun 7, 2021, 5:14:32 AM6/7/21
to fpga-wars-explora...@googlegroups.com
I will try to clear my icestudio and apio installation and see if your revision works :)

_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656

Jo mo

unread,
Jun 7, 2021, 5:17:26 AM6/7/21
to FPGAwars: explorando el lado libre
Ola Charli,

So i just tried a clean install on my linux VM. By deleting all the icestudio folder with:
cd ~/.icestudio
q@q-virtualbox:~/.icestudio$ rm -r *

then i installed your wip of the day :-) .

And now as you wrote there seem to be no more 50% stuck during the toolchain install .  Congratulation for this bug résolution,.

I could also verify and compile the led blinking example without any problem.

So the only problem remaining now is the upload on the Colorligth boards. The openFPGAloader error .

Thanks and have a good day.

Joaquim

charli va

unread,
Jun 7, 2021, 5:23:30 AM6/7/21
to fpga-wars-explora...@googlegroups.com
thanks! i can't see the upload error, i dont have this board, i need your tests and feedback to solve it.

Jo mo

unread,
Jun 7, 2021, 5:58:49 AM6/7/21
to FPGAwars: explorando el lado libre
Yes Carlos, i remember that you are not a colorligth user.

In fact, we are only 3 people here using them: Benito/Steinor/and myself :-). 
Personally, i chose that board because it has plenty of in/out pins , and unlike a traditional dev board it can be directly inserted in a final product.

For the info on the error, you can see the post i did yesterday morning at 9h11.  

If you really need i can send you my log files of today, but  I'm quite sure they contains the same info then those from yesterday.
Because on the "command output" window i have the same result / error as yesterday (see below):

export APIO_HOME_DIR=/home/q/.icestudio/apio; "/home/q/.icestudio/venv/bin/apio" upload --board "ColorLight-i5-v7.0_(FT2232H)" -p "/tmp/icestudio-171280EstPJSPfRiu"

[Mon Jun  7 11:00:24 2021] Processing ColorLight-i5-v7.0_(FT2232H)
--------------------------------------------------------------------------------
openfpgaloader -c ft2232 hardware.bit
sh: 1: openfpgaloader: not found
scons: *** [upload] Error 127
========================= [ ERROR ] Took 0.47 seconds =========================

Thanks

Jo mo

unread,
Jun 8, 2021, 2:51:36 AM6/8/21
to FPGAwars: explorando el lado libre

Ola Carlos,

I continued testing a bit the last wip and have two more coments.


1)- Even when i disconnect my colorligth board and try an upload. i still get the same openfpgaloader not found error.

And on windows where everything works well, when i disconnect the board from the computer, and launch an upload i get a different error

[Tue Jun  8 08:26:32 2021] Processing ColorLight-i5-v7.0_(FT2232H)

--------------------------------------------------------------------------------
openfpgaloader -c ft2232 hardware.bit
write to ram
unable to open ftdi device: -3 (device not found)
Error: Failed to claim cable
scons: *** [upload] Error 1
========================= [ ERROR ] Took 0.71 seconds =========================

So i suppose that the error is not due to the detection  of the board but really the detection, of the soft witch drives the board.
So it means that you should be able to reproduce the error i got on linux without having a colorligth board connected.

Of course, if you manage to solve the first (openfpgaloader not foud)error on linux your upload will be stopped by the second error(the devive not found error)

2)- On this wip, when i try using in the file menu the functions:
- open
- save
- save as

it stops/closes icestudio window.
here is the log file

Have a good day

Joaquim
icestudio(1).log

beni...@gmail.com

unread,
Jun 11, 2021, 12:15:37 AM6/11/21
to FPGAwars: explorando el lado libre
Joaquim, 

The problem is because the openfpgaloader binary is not included in the toolchain-ecp5 
You have to solve manually following  the next instructions for Windows:

-  In the folder -> C:\Users\your_user.icestudio\apio\packages
-  Add the files of toolchain-ecp5.zip file

If you use Linux or Mac you have to download the linux openfpgaloader binary version that is included here

I am waiting for the inclusion in toochain-edp5.zip of the openfpgaloader binary that I commented  in the issue that I sent 7 weeks ago.

Regards

Fernando

Jo mo

unread,
Jun 11, 2021, 4:50:26 AM6/11/21
to FPGAwars: explorando el lado libre

Ola Fernando,

For windows no problem it works.

For linux, i downloaded the toolchain you suggested and extracted it to my home/q/  directory.
then i added the path to my system.
and as you can see bellow openfpga seems to be found trough the terminal window commands.

q@q-virtualbox:~$ export PATH="/home/q/fpga-toolchain/bin:$PATH"                                                                                                                  
q@q-virtualbox:~$ echo $PATH                                                                                                                         
/home/q/fpga-toolchain/bin:/home/q/fpga-toolchain/bin:/home/q/.cargo/bin:/home/q/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin                                                                                                                                                                                            
q@q-virtualbox:~$ openFPGALoader -V
openFPGALoader v0.2.6
q@q-virtualbox:~$

But within icestudio, still same error? it still doesn't find openfpgaloader ???
Reply all
Reply to author
Forward
0 new messages