iCESUGAR and icestudio

829 views
Skip to first unread message

Per-Tore Aasestrand

unread,
Mar 31, 2021, 11:22:09 AM3/31/21
to FPGAwars: explorando el lado libre

Hello group,

Just got my iCESugar v1.5 board, and have some need for help.

In icestudio (Ver 0.5.1w210224) I selected the board and the default collection.
Tried to upload one of the example projects, but got this message (Capture1).
I assume the driver is not correct, but the options didn't make sense (Capture2).

Any help is most welcome.

Regards,

Per-Tore



Capture1.JPG
Capture2.JPG

Steinþór Hafsteinsson

unread,
Mar 31, 2021, 7:55:37 PM3/31/21
to fpga-wars-explora...@googlegroups.com
Hello Per-Tore

I'm not sure what may be the trouble but my first advice would be to try to install the toolchain again,or maybe just apio. 

On my system icesprog is at C:\Users\user\.apio\packages\toolchain-icesprog\bin\icesprog.exe

If that does not work I don't know how to proceed.
_____________________

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.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/d11090ef-5b36-463f-a9f0-b390be9d2e2fn%40googlegroups.com.

PTAa

unread,
Apr 1, 2021, 3:23:43 AM4/1/21
to fpga-wars-explora...@googlegroups.com
Hello Steinþór,

and thanks a lot for your reply. Most appreciated.
.
Last successful use of icestudio was with my Nandland Go Board and Alhambra II.
Worked flawlessly.

As far as I remember (75 now 🤔) I have only used the install package from icestudio.io.
I guess I never installed apio separately.
Current version of icestudio is icestudio-0.5.1n210107-win64

Here iceprog is at: C:\Users\ptaa\.icestudio\apio\packages\toolchain-ice40\bin\iceprog.exe

I find the info on the iCESugar is difficult to find.
There is some on github.com/wuxx/icesugar.
Apparently no detailed description of the card itself, its use and settings and straps etc.

Do you know about somebody else who is using ICESugar with icestudio?

Happy Easter!

Best regards,

Per-Tore

064915 -11 0.4 237 ~ RA3DFQ ZD7MY -14  St. Helena

064915 -11 0.4 237 ~ RA3DFQ ZD7MY -14  St. Helena


Steinþór Hafsteinsson

unread,
Apr 1, 2021, 10:55:53 AM4/1/21
to fpga-wars-explora...@googlegroups.com
Hello Per


Latest release of Icestudio is  wip/20210224. Carlos changed the naming of the nightlies to work in progress, wip. 


And here is a link to the download page, you can get to it from  the main site -> Download -> Nightlies, which is in the last line of the dark blue portion, beneath the normal download links.  https://downloads.icestudio.io/

I have a Icesugar here somewhere. I'll try to find it and update the thread if you haven't got it working by then.

Happy easter.
_____________________

Með bestu kveðju / Best regards 

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

PTAa

unread,
Apr 1, 2021, 11:45:27 AM4/1/21
to fpga-wars-explora...@googlegroups.com


Hallo again, Steinþór,

Now using the WIP build v0.5.1w210224.

When iCESugar is connected to the laptop, and I want to change the driver, Zadig only indicates these devices.
I am supposed to change the Interface 0 driver of the board. Can not find that on the list.

This is the way it is connected:

IMG_7318.JPG

Here is the display from Zadig:

image.png

Any idea?
Regards, Per-Tore

Steinþór Hafsteinsson

unread,
Apr 1, 2021, 2:28:34 PM4/1/21
to fpga-wars-explora...@googlegroups.com
Hello Per.

I found the board and I figured out how I got it to work. When I connect the board to my computer I get 4 interfaces/devices, they are as follows:

WebUSB: CMSIS-DAP (Interface 4)
CMSIS-DAP-v1-MuseLab (Interface 3)
mbed Serial Port (Interface 1)
USB MSC (Interface 0)

In Icestudio I went to Tools -> Drivers -> Enable
Then Icestudio opens the Zadig installer.
You install the libusbK driver to  USB MSC (Interface 0). 
On the board overview there are jumpers at number 4, just beneath the micro USB connector. Just above them on the board silkscreen it shows how you should connect them, Prog Flash is the way I have my jumpers set.
Then all that was left was loading a example 8bit counter and set up the LED's on proper pins to work with the PMOD and flash it over which was very fast.
I'll attach some screenshots and a video showing the LED's blinking.

_____________________

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.
icestudio-install-drivers-icesugar.png
icestudio-install-drivers-icesugar-zadig.png
1617299538560-1.m4v

PTAa

unread,
Apr 1, 2021, 6:40:24 PM4/1/21
to fpga-wars-explora...@googlegroups.com
Hello Steinþór,

Thanks a lot for taking the time and trouble to do this for me.
Now it works just fine. Fantastic!

I was a bit hesitant to replace that USB driver since I didn't recognize it to have anything to do with the iCESugar board.
Had some bad experience earlier with by mistake replacing the wrong driver. This resulted in neither mouse nor touchpad working any more. Took me a long time to repair.

I noticed on the video you sent, that you also have the PMOD-AUDIO.
Do you have any project that can send sounds to the speaker?
I am a serious FPGA newbie trying to learn. Steep learning curve.

Again, thanks a lot for your friendly help, Steinþór.
Very much appreciated.

Best wishes,

Per-Tore






Steinþór Hafsteinsson

unread,
Apr 1, 2021, 9:49:36 PM4/1/21
to fpga-wars-explora...@googlegroups.com
Hi Per

It was not that much effort, since I had done it before and vaguely remembered it. And also I have the Colorlight i5 with a carrier board from the same seller. Both of these have the same, or very similar, methods to flash the board. There is a STM32 "bluepill" chip in the board that uses a Arm feature called DAP-Link (hereafter DAL). The DAL acts as a link between your computer and your fpga board, DAL supports drag and drop flashing of the board. My knowledge of it is very basic so if you are interested learning about it I can only point to google. But since I have been fighting with getting my Colorlight i5 to work I could guess what was the interface to change the driver on.

I bought my board on AliExpress from MuseTech official store, and I decided to grab those PMODS as well. Since I bought the IceSugar they have added a SD card pmod and a IceSugar Nano as well as a IceSugar Pro, which is a Lattice ECP5 fpga like my i5 but it has been designed so it is easier to work with than the i5 and has much more memory, and a larger flash  chip. I have not really gone over the specs yet, but I'm such a idiot that I'll probably buy it in the near future, even if I have no real use for it, anyway I digress. But since I bought all the pmods they had at the time I bought the Icesugar I just took it as I think I'll find a use for it later on. Therefore I do not have any project with audio to use it on at this time.

I am also a FPGA newbie and to be honest I have not come close to creating something that needs a bigger FPGA than the Upduino I started with. I'm a horrible tech hoarder and spend more time looking for cool new stuff, than I do once I have the hardware in my hands.

I hope you'll be able to have fun with the new board.
_____________________

Með bestu kveðju / Best regards 

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

PTAa

unread,
Apr 25, 2021, 2:57:12 PM4/25/21
to fpga-wars-explora...@googlegroups.com
Good evening, Steinþór,

And thanks for lots of interesting info.
Sorry for my very late reply, all due to some health issues.

Compared to me, you are far from an FPGA newbie.
My background is mainly from embedded programming in C.
I find it difficult to adjust properly to the new way of thinking.

Have you found a way to program to SRAM instead of to FLASH?
That way the previously loaded program would still be available.
Handy for quick testing.

How is it going with the active volcano?

All the best. Take care.

Regards,

Per-Tore





Steinþór Hafsteinsson

unread,
Apr 25, 2021, 9:55:30 PM4/25/21
to fpga-wars-explora...@googlegroups.com
Hello Per-Tore, there are two pairs of jumpers on the top of the card, near the micro USB, One of the pairs is used to select whether you flash to flash or sram. There are instructions printed on the board how to set them properly.

We have so many active volcanoes here that it's hard to choose from, although none of them are erupting at the moment. If you are talking about the micro eruption in Geldingadal then that is going fine. It's probably no more than 25km from my place and if it weren't for the glow in the sky at night and all the volcano photos then I'd really not notice it.

It's a tiny lil thing, The flow rate is estimated to be around 8m3 per second while a eruption in 2014 originating in Bárðarbunga volcano under the Vatnajökull glacier and after travelling 40km from the main volcano under ground it came up outside the glacier and was similar to the current eruption, a lava eruption, only about 100x more m3/ per second.

_____________________

Með bestu kveðju / Best regards 

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

PTAa

unread,
May 23, 2021, 10:23:03 AM5/23/21
to fpga-wars-explora...@googlegroups.com
Thanks for info.
I could not get it to work, so I asked JohnnyW.
He told me that programing via SRAM was not currently supported.

Wrt volcanoes: it sounds scary, but I guess one gets used to it.

Take care.

Per-Tore


Reply all
Reply to author
Forward
0 new messages