[Icestudio] [0.6.1w202107211007] Actualizado a apio 0.7.5

263 views
Skip to first unread message

Obijuan

unread,
Jul 21, 2021, 11:50:24 AM7/21/21
to FPGAwars: explorando el lado libre
Hola,

Estoy trabajando en la actualización de la toolchain, para disponer de las versiones más recientes en Icestudio. Para ello estoy creando el paquete oss-cad-suite [1] para Apio

Voy a ir introduciendo las nuevas versiones gradualmente, para adaptar icestudio y que se rompa lo menos posible

He empezado reemplazando el paquete system, que contiene las utilidades lsusb y lsftdi. Los cambios están en apio 0.7.5, y he actualizado icestudio para utilizar esta versión por defecto (antes era la 0.6.7)

Necesito que hagáis pruebas y comprobéis si se ha roto algo o sigue funcionando bien


La versión 0.7.5 de apio ya contiene openFPGALoader instalado de base, por lo que no hay que actualizar a la toolchain de develop. Es decir, que las placas Colorlight ya está soportadas al 100%

Los cambios los podéis ver aquí:


Muchas gracias por la ayuda

Saludos, Obijuan

Democrito

unread,
Jul 21, 2021, 1:55:02 PM7/21/21
to FPGAwars: explorando el lado libre
Por aquí todo correcto (win64+Alhambra II); he actualizado la Toolchain a la 0.7.5, he subido un circuito complejo y ningún problema. Cualquier cosa rara que vea lo comunicaré.

Gracias y saludos!

toolchain_ok_0.7_5.PNG

Jo mo

unread,
Jul 21, 2021, 1:59:19 PM7/21/21
to FPGAwars: explorando el lado libre
hola obijuan,

Thanks for this update,
i just tested it on my win7 machine and the toolchain install stops at 90 % see bellow picture. And let you the possibility to install it again. and its stucks at 90% again  ...the dog chasing its tail ;-) .

i also tried on linux (with the appimage) and after removing the toolchain and reinstalling it, it stops at the same stage!

 have a good evening
Joaquim
Capture.JPG

Jo mo

unread,
Jul 21, 2021, 2:01:58 PM7/21/21
to FPGAwars: explorando el lado libre
Oups,  forgot to mention thaht myselected board is the colorligth i5 (ft2232) but you know it know  ;-)
Regards

Joaquim

Juan Gonzalez Gomez

unread,
Jul 21, 2021, 2:04:44 PM7/21/21
to FPGA-WARS: explorando el lado libre
Muchísimas gracias por las pruebas Demócrito!😃

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/a2ac1a4a-3fea-4e50-a35f-4c31aca14415n%40googlegroups.com.

Juan Gonzalez Gomez

unread,
Jul 21, 2021, 2:08:12 PM7/21/21
to FPGA-WARS: explorando el lado libre
Thanks for the test joaquim!

I need you to do follow this steps:

1. Remove the icestudio.log from your home folder
2. Remove the toolchains
3. Install it again (until it reaches the 90% and stalls)
4. Attach the icestudio.log file

I need to analyze the icestudio.log file to see what's the problem

Thanks for your help

Best regards, 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.

Jo mo

unread,
Jul 21, 2021, 2:52:12 PM7/21/21
to FPGAwars: explorando el lado libre
Holq bijuan,

This time i tried with alhambra board selected. And got the same issue.
Here is the log file.
icestudio.log

Obijuan

unread,
Jul 23, 2021, 4:20:27 AM7/23/21
to FPGAwars: explorando el lado libre
Thanks a lot for the tests joaquim!

I've read the log and the toolchains were successfully installed, but for whatever the reason (there is a bug that we should find) the ui interface does not detect it.

I need to have more information. Please, I need you to do these tests:

* Install the latest wip (I have not solve this bug, but there are other changes. I want to know if the bug is still there or not)
* Close icestudio
* Remove the icestudio.log
* Open icestudio
* Remove the toolchains
* Install the toolchains
* When it reaches the 90% and it get stalled, open the icestudio.log for checking that the toolchains have already been sucessfully installed (Have a look at the message in the end)
* Close icestudio
* Open it again
* What happens? Does it detect the already installed toolchains or you get a new message saying toolchains not installed?

Thank you very much for your help

Best regards, Obijuan

Jo mo

unread,
Jul 23, 2021, 11:36:35 AM7/23/21
to FPGAwars: explorando el lado libre
Hola obijuan,

With last wip  ( 202107220707  ), after the icestudio installation, i launch icestudio and got directly a white screen see picture

I have this on my linux machine and on the windows one too.

best regards

Joaquim
Capture.JPG

Obijuan

unread,
Jul 23, 2021, 12:37:45 PM7/23/21
to FPGAwars: explorando el lado libre
ok, I see. Thanks Joaquim for the test! As I am upgrading the packages, many things will break and it is going to be difficult to find bugs. I will spent more time with the current work in the develop branch (that will be broken very often) and after some time I will stop it,  find bugs and create a new stable version.

In the meanwhile it would be great if you could test the wip version from time to time and give some feedback

Just curious about one thing about this bug, could you please press the F12 key once the blank screen appears? It should open the debug console and show some messages (an error message if we are lucky)

Thanks for your time and the test

Best regards, Juan

Jo mo

unread,
Jul 23, 2021, 12:44:54 PM7/23/21
to FPGAwars: explorando el lado libre
Sure Obijuan,

here are the error messages

have a good evening
Capture.JPG

Jo mo

unread,
Jul 23, 2021, 12:49:33 PM7/23/21
to FPGAwars: explorando el lado libre
and the elements tab
Capture.JPG

Obijuan

unread,
Jul 23, 2021, 12:54:43 PM7/23/21
to FPGAwars: explorando el lado libre
Thanks a lot! This information is very helpfull (it is not related to the first bug, but it gives me a lot of information for solving the blank screen problem)

Best regards, Obijuan

Obijuan

unread,
Jul 23, 2021, 1:12:07 PM7/23/21
to FPGAwars: explorando el lado libre
I've been able to reproduce the bug! When testing from the develop branch it works ok. The problem is when the generated images (.exe or .appimage) are executed. There is a bug in the generation of the final images (So All the 0.6.1w2021072207 wips are broken!)

Thanks for your feedback

Best regards, Juan

El viernes, 23 de julio de 2021 a las 17:36:35 UTC+2, joa...@gmail.com escribió:

Jo mo

unread,
Jul 23, 2021, 1:32:18 PM7/23/21
to FPGAwars: explorando el lado libre
Great, we have the diagnostioc, so 90% of the works is done ;-)

Another little (and probably dumb) question.
you just update node js to 12.13
is there a reason of not upgrading to a more recent node js version?  It seem they are at version 16.4.0   https://nwjs.io/blog/v0.54.1/

With some luck, those recents version will improve icestudio graphics rendering speed !

Thanks obijuan

Joaquim

Juan Gonzalez Gomez

unread,
Jul 23, 2021, 2:02:20 PM7/23/21
to FPGA-WARS: explorando el lado libre
I've updated node to 12.13 but only for the building system. The internal icestudio node is version 11.6.0. It is defined by the nwjs version we are using: 0.35.5.  So, if we want to upgrade node we should first upgrade nwjs... but it is not an easy task. This version is very old and requires a lot of effort to upgrade (many parts should be re-implemented).

Carlos is working on a solution, but it will take time

Best regards, Juan

Jo mo

unread,
Jul 23, 2021, 2:11:47 PM7/23/21
to FPGAwars: explorando el lado libre
Ok, thanks for the détails

Have a good week-end guys

Joaquim

Obijuan

unread,
Jul 24, 2021, 3:38:22 AM7/24/21
to FPGAwars: explorando el lado libre
It seems that has been fixed in 0.6.1w202107230607  (I've only tested on Linux)

If there is no more blank screen, it would be great if you could continue with the test of the 90% issue. These are the steps:

* Close icestudio
* Remove the icestudio.log
* Open icestudio
* Remove the toolchains
* Install the toolchains
* When it reaches the 90% and it get stalled, open the icestudio.log for checking that the toolchains have already been sucessfully installed (Have a look at the message in the end)
* Close icestudio
* Open it again
* What happens? Does it detect the already installed toolchains or you get a new message saying toolchains not installed?

Today I am working on upgrading packages and cleanning the code so very likely the next wips could be broken

Thanks for your help

Best regards, Obijuan

El viernes, 23 de julio de 2021 a las 17:36:35 UTC+2, joa...@gmail.com escribió:

Jo mo

unread,
Jul 24, 2021, 8:54:05 AM7/24/21
to FPGAwars: explorando el lado libre
Hola obijuan,

i installed wip 0.6.1w202107241107 and the blank screen is gone.
So the toolchain installation stop after the 90% , and in the log file it looks installed. see joined log.
then after closing a reopening icestudio, i have the messqge toolchain not installed (see joined capture). i joined also the log after this reopening.

Have a good day

Joaquim
icestudio.log
Capture.JPG
icestudio-after 90.log

Obijuan

unread,
Jul 24, 2021, 3:50:27 PM7/24/21
to FPGAwars: explorando el lado libre
Hi Joaquim,

Thank you very much for your help. This bug is complicated because I cannot reproduce it (in my systems it does not get stalled), so I will review the code and add messages to the log for finding the reason why it does not finish the task (althought the toolchain has already been installed)

One of my current task is to learn about the internal architecture of icestudio. It was developed by Jesus many years ago and it has not been updated since then. I want to learn about it, document it in the comments, remove the old parts and update some of the node packages. My goal is to fully undestand it so that I can give a hand to Carlos in the upgrading of nwjs and node. In addition, I want to make the code easier to undertand to anyone (Currently there is no technical documentation and it is very complicated for people to undertand how it works)

Best regards, Juan

El sábado, 24 de julio de 2021 a las 14:54:05 UTC+2, joa...@gmail.com escribió:
Hola obijuan,

Obijuan

unread,
Jul 25, 2021, 4:00:28 PM7/25/21
to FPGAwars: explorando el lado libre
Hi Joaquim!

I've reviewed the code and I know more or less what can be the cause of the problem. I've made some changes in the code and added log messages, so I need you to test it. The information collected will give me some hints for fixing the bug

The latest version is 0.6.1w202107250107

Please, proceed as follows:

* Close icestudio
* remove the log file (icestudio.log)
* Run icestudio (0.6.1w202107250107)
* Remove the toolchains
* Install the toolchains
* Wait until it freezes (or finish)
* Close icestudio
* Open it again
* Send me the icestudio.log file

Thank you very much for your help. I am very close to undertand the problem

Best regards, Obijuan

Jo mo

unread,
Jul 25, 2021, 4:51:57 PM7/25/21
to FPGAwars: explorando el lado libre

Hola Obijuan,

So i tried with the last wip (0.6.1w202107250407)
And there is no more 90% freeze. see joined log file.
But when i try to compile the "one led" design. it doesnt see some tools. see the joined command output

have a good nigth

Joaquim
icestudio.log
Capture.JPG

Juan Gonzalez Gomez

unread,
Jul 25, 2021, 5:35:17 PM7/25/21
to FPGA-WARS: explorando el lado libre
Thanks for the test. The bug of the 90% is fixed. Great! 😃 (I wrote a fix, but I  wasn't sure about it. I needed confirmation).

Let's hunt the next bug. I will prepare another version for you to try, which will include more outputs in the log file (as I cannot reproduce it in my computers)

In the meanwhile I need to know, if possible, if this bug happens in both systems: linux and windows, or it is only in windows

Thanks again for all your tests

When this bug is fixed, we will release another stable version: icestudio 0.7

Best regards, Juan


--
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.
Message has been deleted

Jo mo

unread,
Jul 26, 2021, 1:16:11 AM7/26/21
to FPGAwars: explorando el lado libre
Hi Obijuan,

Yes i can confirm, thaht this new bug appears also on the linux machine.
it will be nice i f someone else test those recent wip, my two computers should not be the only ones having bugs :-).
Unless they are having sex and sharing pubic louse nnoun when i am absent! :-(  :-)

Thank for all your investigations

Joaquim
Capture.JPG

Obijuan

unread,
Jul 26, 2021, 2:13:49 AM7/26/21
to FPGAwars: explorando el lado libre
Thanks a lot for your tests! Today I've reproduce the bug. This is really good as now I can understand it better and fix faster. I will spend the day hunting bugs and stabilizing all the internal changes made

I will keep you informed. When I have a new wip to test I will let you know

Best regard, Obijuan

Juan Gonzalez Gomez

unread,
Jul 26, 2021, 3:20:52 AM7/26/21
to FPGA-WARS: explorando el lado libre
Hi joaquim!

Now I understand the bug. It is an bug in Apio.  This tool is in charge of managing the fpga toolchains (installation, execution, etc...).  This is an independent tool from icestudio (and you can use apio directly in the command line without icestudio)

When installing icestudio, it install its own apio (in the python virtual environment) isolated from that of the system

The bug is in apio. When executed from icestudio it reads information from the external apio (it should not do that)

As I have apio installed on my system (In addition to icestudio) I was not able to detect the bug

But once I've removed the apio from the system, I was able to reproduce your bug! That is a big one! Thanks!

In order to confirm it, I need you install apio in the system and check that the "package scons is not installed" error message is no longer there

(of course, when the bug is fixed, the user will not have to install it on its system. I just need you to do it as a confirmation)

For installing apio in your system just type the following commands in the cmd line (as an adminitrator):

pip install apio
apio install -a

If I am not wrong, the error should not appear anymore (but there might be other bugs, of course)

When I have the final fix I will let you know

Thanks for all your help and test.

Best regards, Obijuan

El lun, 26 jul 2021 a las 8:13, Obijuan escribió:
Thanks a lot for your tests! Today I've reproduce the bug. This is really good as now I can understand it better and fix faster. I will spend the day hunting bugs and stabilizing all the internal changes made

I will keep you informed. When I have a new wip to test I will let you know

Best regard, 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.

Obijuan

unread,
Jul 26, 2021, 6:07:45 AM7/26/21
to FPGAwars: explorando el lado libre
Hi Joaquim!

I think this bug is fixed, but I need confirmation

* If you have done the previous test (installing apio on the system for confirming the bug), follow these steps:
- Uninstall apio:
  pip uninstall apio
- Remove the .apio folder from your home folder

* Let's confirm the bug is still there (to appreciate later if it is gone or isn't):
- Run icestudio (The one you already have, no new installations)
-Build the example
-The bug should be there: "Error: package 'scons' is not installed"

* Bug fixed:
- Install the latest stable apio: Tools/Toolchain/Update(Latest stable)
- You should see apio 0.7.6 in the Tools/Toolchain menu
- Build the example
- The error should be gone (This is the critical moment!)

When you confirm that the bug is fixed, I will upgrade icestudio for installing apio 0.7.6 by default, instead 0.7.5 (so It won't be neccesary to Upgrade the toolchains)

If the bug is not fixed, please provide the log and as much information as possible and we continue hunt
The same if another bug appears

Thanks a lot for all your help. Testing and giving feedback is the only way of getting it bug-free

Best regards, Obijuan

Jo mo

unread,
Jul 26, 2021, 8:07:07 AM7/26/21
to FPGAwars: explorando el lado libre
Hello Obijuan,

i was not at home this morning, so when i access to my computers, i directly proceed with the installation of apio 0.7.6

Congratulation the bug is solved for both system Linux and windows7,   i could build and upload on my fpga the "led blink test.ice"!

You will tell that i am painful, but i noticed two more thinks :-)

1- on Linux when icestudio starts(running appimage file), i have a white screen and i need to right click on the panel and click on "reload app"

2- on Linux and on windows, when i open the one-led.ice design
then i start moving a block (port, constant or text) of the design, i can move it!
But when i release the mouse button to place it somewhere in the workspace, the block continues moving with the mouse pointer! and the only think you can do to solve this is restarting icestudio!

Thanks again Obijuan

Joaquim

Jo mo

unread,
Jul 26, 2021, 8:20:36 AM7/26/21
to FPGAwars: explorando el lado libre
probably not usefull for these bugs but here is the log file
icestudio.log

Obijuan

unread,
Jul 26, 2021, 8:42:20 AM7/26/21
to FPGAwars: explorando el lado libre
Hi Joaquim!

All right! One less bug! The part of the installation and the toolchains should be now more or less stable.  Let's continue the bug hunting!

I can reproduce bug number 2. If you press F12 you will see the error on the console. It seems that one package is missing or the version is not the correct one. As I have been upgrading the packages and moving from bower to npm, I should have missed something.

Bug number 1 has happened to me from time to time. Not only on the latest wip, but time ago

I will focus on bug number 2

Thanks for your time and help 😀️ Do not hesitate on writting down all the critical bugs you find! It is the only way to have a really stable version: testing, tenting, testing...

Best regards, Juan

Obijuan

unread,
Jul 26, 2021, 9:41:38 AM7/26/21
to FPGAwars: explorando el lado libre
I've seen that if you first select the block you want to move (Creating a selection area by left-clicking and  dragging) it works ok (once the element is blue, you can move it without any problem)

But if you click directly on it, the bug appears and you no longer can drop the block

I am telling you this just in case you wanted to work with icestudio, while I am finding and fixing the bug

Best regards, Obijuan

Jo mo

unread,
Jul 26, 2021, 11:32:28 AM7/26/21
to FPGAwars: explorando el lado libre
no, i`m not working on Fpga designs these days,

But thanks for the tip Juan it can help others.

Joaquim

Jo mo

unread,
Jul 26, 2021, 12:17:28 PM7/26/21
to FPGAwars: explorando el lado libre
maybe a hint Juan, (you may have already noticed it)

It is certainly not the final solution (because it may have disactivated a function)

Commenting line 509 in graph.js  seems to 'solve" the issue

have a good evening
Capture.JPG

charli va

unread,
Jul 26, 2021, 12:17:29 PM7/26/21
to fpga-wars-explora...@googlegroups.com
Hi Jo! i fix the "move block bug" if you want to try the last wip for confirm.

Thanks!

--
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,
Jul 26, 2021, 12:20:35 PM7/26/21
to fpga-wars-explora...@googlegroups.com
Exactly Jom, i'm write without read or receive your mail.

Juan remove bower dependencies and the lodash library used by npm instead of bower not use this funcion and is not needed in this point.

Thanks!

--
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.

Obijuan

unread,
Jul 26, 2021, 12:53:05 PM7/26/21
to FPGAwars: explorando el lado libre
Thanks Charli!

I've tested it and the bug is gone!!!

I will continue with the preparation of the stable 0.7 release

Best regards, Juan

Jo mo

unread,
Jul 26, 2021, 1:20:37 PM7/26/21
to FPGAwars: explorando el lado libre
Yes, great,

Here the bug i gone too (for Windows an Linux)

For the white screen on the startup of icetudio, as it happens every time (at least on my ubuntu linux)
it is not pretty, but maybe we can add somewhere at icestudio startup an automatic "reload app" :

If (system = linux)  then run "reload app"


Thanks to you both an courage to Juan for the preparation of 0.7 release

Joaquim

charli va

unread,
Jul 26, 2021, 1:31:53 PM7/26/21
to fpga-wars-explora...@googlegroups.com
Hi Jo! i'm trying to reproduce your problem but i can't, i'm continuing looking for it.

--
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,
Jul 26, 2021, 3:27:46 PM7/26/21
to fpga-wars-explora...@googlegroups.com
Hi again! a new wip! , could you try when you could if blank page disapears?

Thanks!

Jo mo

unread,
Jul 26, 2021, 4:39:15 PM7/26/21
to FPGAwars: explorando el lado libre

Ok, so on Linux ( where the bug was present)

i launched 10 times the first wip of today and add a white/blank screen 8 times (so it was not as systematic as i wrote before)
then i launched 10 times the very last wip of the day (...260707) an add  no white/blank screen at all.

So lest consider this minor bug as solved!

Gracias Carlos an Obijuan and have a good night !

charli va

unread,
Jul 26, 2021, 5:07:40 PM7/26/21
to fpga-wars-explora...@googlegroups.com

Obijuan

unread,
Jul 27, 2021, 2:53:45 AM7/27/21
to FPGAwars: explorando el lado libre
Thanks you very much for the tests, Joaquim!! 😀️ I will merge this fix into master and launch the 0.7-rc1 for other people to test it 
During the rc cycle (release candidate) we will focus only on solving critical bugs, so that the final 0.7 is stable enough to work with

(I will open a new thread for that. It will be in Spanish, as there are many people on this community who do not feel confident enough with their English skills)

Very good work charli! Thanks a lot!

Best regards, Obijuan

Jo mo

unread,
Jul 27, 2021, 3:29:33 AM7/27/21
to FPGAwars: explorando el lado libre
Yes Juan,
Of course, let's go spanish.
Once again, do not hesitate to replie to me in spanish on this group, i can undestand it almost perfectly ;-)
i just can not write in an acceptable/understandable maner!

have a good day

Joaquim
Reply all
Reply to author
Forward
0 new messages