Introduction to FPGA Part 2 - Getting Started with Yosys, IceStorm, and Apio | Digi-Key Electronics

  Рет қаралды 106,381

DigiKey

DigiKey

2 жыл бұрын

In this tutorial, we install the open-source iCE40 FPGA toolchain, which consists of apio, yosys, nextpnr, and Project IceStorm.
A field-programmable gate array (FPGA) is an integrated circuit (IC) that lets you implement custom digital circuits. You can use an FPGA to create optimized digital logic for things like digital signal processing (DSP), machine learning, and cryptocurrency mining. Because of the FPGA’s flexibility, you can often implement entire processors using its digital logic. You can find FPGAs in consumer electronics, satellites, and in servers used to perform specialized calculations.
In this series, we will see how an FPGA works and demonstrate how to create custom digital logic using the Verilog hardware description language (HDL).
In the previous episode ( • Introduction to FPGA P... ), we examined how an FPGA works and why you might want to use it in your projects or products. In this episode, we demonstrate how to install apio and the various open-source tools required to build and upload designs to a Lattice iCE40 development board.
The solution to the challenge at the end of the episode can be found here: www.digikey.com/en/maker/proj...
All code examples and solutions for this series can be found here: github.com/ShawnHymel/introdu...
Lattice iCE40 product page (with pinout spreadsheet and datasheet): www.latticesemi.com/en/Produc...
We install the apio tool (github.com/FPGAwars/apio), which will help us install and control other lower-level tools required to synthesize, simulate, and upload our FPGA designs:
- Synthesis: yosyshq.net/yosys/
- Simulation: gtkwave.sourceforge.net/
- Place and route: github.com/YosysHQ/nextpnr
- Package: icepack (as part of Project IceStorm: github.com/YosysHQ/icestorm)
- Upload: iceprog (as part of Project IceStorm: github.com/YosysHQ/icestorm)
The apio documentation can be found here: apiodoc.readthedocs.io/en/sta...
Note that there might be some differences between the various operating systems (e.g. Windows, macOS, Linux) during installation. I demonstrate installation on Windows and try to point out the differences from other operating systems.
Important! At this time, the latest version of apio (0.7.6) has several issues. Until those issues are resolved, I recommend sticking to v0.6.7 (as shown in the video). You can read about some of those issues here: github.com/FPGAwars/apio/issues.
Apio includes several examples to get you started. We demonstrate one such example that illuminates all of the onboard LEDs. We finish by issuing a challenge to modify the leds.v example to turn off one of the LEDs.
Product Links:
www.digikey.com/en/products/d...
Related Videos:
• Cyclone® III FPGA
• Power Management: Powe...
• FPGA's: Low-Cost, High...
Related Project Links:
www.digikey.com/en/maker/proj...
Related Articles:
www.digikey.com/en/pdf/r/rene...
www.digikey.com/en/videos/d/d...
www.digikey.com/en/product-hi...
Learn more:
Maker.io - www.digikey.com/en/maker
Digi-Key’s Blog - TheCircuit www.digikey.com/en/blog
Connect with Digi-Key on Facebook / digikey.electronics
And follow us on Twitter / digikey

Пікірлер: 133
@thalanayarmuthukumar5472
@thalanayarmuthukumar5472 2 жыл бұрын
Great video and great support. Shawn is so crystal clear on steps to get to see the results in such a short guided tour working hands on with FPGAs 👌
@CircsC
@CircsC 2 жыл бұрын
This is the only series of anything I'm hyped for new episodes of in 2021
@davidkempton2894
@davidkempton2894 2 жыл бұрын
Thanks Shawn. Very nice getting started video. I also liked how you got us to look at the data sheets so we could see exactly what pins we are controlling. Great Job!
@YoutubeBorkedMyOldHandle_why
@YoutubeBorkedMyOldHandle_why 2 жыл бұрын
Great job Shawn! You covered a LOT in this video ... and everything just worked! Looking forward to the next one ;-)
@rickh6963
@rickh6963 2 жыл бұрын
I received my iCEstick on Friday (and some back ordered Raspberry Pi Zero 2 W's on Saturday) and have been waiting for the notification to go off. Right after work I'm going to get started! Looks like it going to be "All Geek, All Week." Thanks Shawn! Keep up the good work!
@originalmianos
@originalmianos 2 жыл бұрын
I got one of the Lattice Sticks years ago and never got around to doing much with it as I went to a MacOS desktop and the 50G download seemed to be Windows only. So far I am enjoying this tutorial with yosis and will certainly be following along. Thanks.
@DM-ei6oo
@DM-ei6oo 2 жыл бұрын
This channel is amazing. And digikey has literally every component available
@anilraghu8687
@anilraghu8687 2 жыл бұрын
So great sharing your knowledge for free in a very organised format.
@xiaodongzhang845
@xiaodongzhang845 Жыл бұрын
Hi @Shawn. I just bought the same icestick from digikey. But I can not upload bin file to icestick. And after I installed the FTDI driver, the icestick is still recognized as "Manufacturer: FTDI, Description: Dual RS232-HS". No "Lattice" or "Icestick
@JoelIvoryJohnson
@JoelIvoryJohnson Жыл бұрын
I encountered the same thing. The Icestick shows as two USB devices. I've tried assigning the FTDI drivers to both and get the same result that you do.
@JoshBrownPhotography
@JoshBrownPhotography Жыл бұрын
Do a search for a JSON file called Boards. It's deep in your python folder. Change the description for icestick to what you are seeing as the description in zadig.
@Tristoo
@Tristoo 2 жыл бұрын
can't wait for the next one. always wanted to get into FPGAs but could never really justify spending hours on end learning it because I don't have a use for it (yet). but with something this level of quality it might actually be fun and so far I'm completely hooked. thank you!
@user-fd3bn1li9u
@user-fd3bn1li9u Жыл бұрын
When I type "apio verify", a message appears: "Error: module 'click' has no attribute 'get_terminal_size'" Why is this, and what can be done about it?
@rudiger86
@rudiger86 5 ай бұрын
Did you end up doing anything with the knowledge?
@accountname1651
@accountname1651 2 жыл бұрын
Thanks for your detailed explanation and the effort you put in this 3 videos
@apooravsinghdeo2317
@apooravsinghdeo2317 Жыл бұрын
Thanks Shawn! You are a great teacher.
2 жыл бұрын
I feel like you could teach quantum mechanics and it would make perfect sense. Those videos are amazing!!
@aekhv
@aekhv 2 жыл бұрын
Nice tutorial, thanks a lot! Can't wait for the next part :)
@shazib3062
@shazib3062 2 жыл бұрын
Very Well explained video.
@vaniaeli4392
@vaniaeli4392 3 ай бұрын
Muito Obrigado por democratizar esse conhecimento ❤
@space_0027
@space_0027 2 жыл бұрын
This is such a comprehensive and well explained video, thank you!
@surflaweb
@surflaweb 2 жыл бұрын
Interesting dear. Thanks
@arunalakmal9031
@arunalakmal9031 2 жыл бұрын
Awesome work...Keep it up...
@aminghafoori6496
@aminghafoori6496 2 жыл бұрын
i was waiting for this video thanks
@BLSrr
@BLSrr 2 жыл бұрын
Just ordered my ICE40HX1K-STICK-EVN, any plans to make a custom design with a pcb and use this FPGA?
@ShawnHymel
@ShawnHymel 2 жыл бұрын
No plans to do a custom PCB around the FPGA, but it's good to know there's interest!
@audiodiwhy2195
@audiodiwhy2195 Жыл бұрын
Great video as always. Thanks. BTW I am using Windows 10, Python 3.11 and was getting errors with the python click module when trying to verify a simple blink .v file. I solved it by updating to current apio and then running "apio install oss-cad-suite" -- now it all works.
@ShawnHymel
@ShawnHymel Жыл бұрын
Thanks for the heads up on getting the new version of apio to work!
@kokeskokeskokes
@kokeskokeskokes 2 жыл бұрын
I find your videos very organized, and FPGAs sound intereting. However I looked up the specs, and the CPU clock is 1/10th that of Teensy, so even though I can program bare metal more easily on FPGAs and I can make the code run more efficiently, at that clock speed I don't think it can be enough. For me. Excellent work.
@Kartavya64
@Kartavya64 Жыл бұрын
CPU clocks do run very high, but they are instruction based. For a simple addition of two values from memory, they do two load instructions and then an add instruction. So effectively, you need 3 cycles for that. But on an FPGA, you give two inputs, one clock later, the output is obtained. There is definitely more explanation why FPGAs can be faster but this is the watered down version of it.
@AhmadAsmndr
@AhmadAsmndr 2 жыл бұрын
I did it 😍😍😍. Thank you very much and I also was able to turn off the LED .. 🤩
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Awesome, and well done!
@phillipneal8194
@phillipneal8194 2 жыл бұрын
Excellent !
@fredkilner2299
@fredkilner2299 2 жыл бұрын
The Special Tuesday digilent FPGA board prices for Arty and Zynq are well worth looking at. For today only. 11/30/2021.
@barnus877
@barnus877 2 жыл бұрын
Your videos are fascinating. Can't wait for the next one. Where can I buy a iCE40 FPGA in Europe?
@DavidTLutz
@DavidTLutz 2 жыл бұрын
I just found one at future electronics in Germany
@GLPRAGMA
@GLPRAGMA 2 жыл бұрын
apio verify command failed because module 'system.vpi' wasn't found. What should I do to fix it? Thank you Shawn for your great job.
@user-fd3bn1li9u
@user-fd3bn1li9u Жыл бұрын
When I type "apio verify", a message appears: "Error: module 'click' has no attribute 'get_terminal_size'" Why is this, and what can be done about it?
@cryptocsguy9282
@cryptocsguy9282 2 жыл бұрын
Make these FPGA videos 📹 into a playlist please 🙏🏾
@savejeff15
@savejeff15 2 жыл бұрын
give it another year or two and i hope we will see this or something like this evolve to a arduino type of framework. at that point I will get into it. Its currently just still not really easy to developed home grown projects with so many ifs and buts. i think the future for hoppy fpga is bright, but still some time away
@intelrail6268
@intelrail6268 2 жыл бұрын
Thanks
@nerdom1610
@nerdom1610 2 жыл бұрын
Super informative series so far! However I'm having one issue on MacOS during install. After running `apio drivers --ftdi-enable` to install FTDI drivers, and then attempting to run `apio system --lsftdi` I encounter an error saying that dyld: Library not loaded: /usr/local/opt/libftdi/lib/libftdi1.2.dylib Referenced from: /Users/trylaarsdam/.apio/packages/tools-system/bin/lsftdi Reason: image not found This doesn't happen on windows, and the utility detects my upduino just fine.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
I wish I had a Mac to test the install process, so don't know how helpful this will be. I recommend installing libffi and libftdi using homebrew (this comes from some GitHub issues pages if you search for your error message): brew install libffi brew install libftdi Let me know if that works!
@razvanvlad607
@razvanvlad607 Жыл бұрын
Can anybody help me? I'm a beginner and I'm looking for a FPGA board to start with. I don't know which board is the most suitable for me. Nexys A7 is way too expensive. My options for the time being are: Basys 3 artix-7, Arty A7/S7 or Cmod A7/S7 (breadboardable). I need a good price quality ratio. And also I don't know if the breadboardable boards are enough powerful and capable. Are they worth it? Or the extra money for the other boards like Basys and Arty is worth it more? Thank you very much!
@wm6h
@wm6h 2 жыл бұрын
Problem with drivers on Mac. “upload” is looking for /ACM0 but Mac sees /TTY Will try on Linux today. A very useful series. Thanks.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Shoot! That's frustrating...I really thought apio would have "just worked" on Mac. I don't have a Mac, so I couldn't verify it :( What exact error is it giving you? Does `apio system --lsftdi` give you anything when you have the iCEstick plugged in?
@wm6h
@wm6h 2 жыл бұрын
Got it to work on Ubuntu! Now that I have confidence, I’ll go back through Mac again. 😀
@wm6h
@wm6h 2 жыл бұрын
Shawn, still fails on macOS. I should point out I’m on a M1 Mac under Monterey apio drivers -ftdi-enable Enable FTDI drivers for FPGA Already up-to-date. Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)! To rerun under ARM use: arch -arm64 brew install ... Then I get lost in a world of brew, Taps, casks, formula, etc. The -lsftdi you suggested gives apio system --lsftdi .apio dyld[37821]: Library not loaded: '/usr/lib/libftdi1.2.dylib' (no such file) and so on Thanks anyway. I’ll do your series on Linux.
@thalanayarmuthukumar5472
@thalanayarmuthukumar5472 2 жыл бұрын
@Shawn Hymel - great second tutorial ... Things sailed through till about 12:30 I did do "pip install -U scons" to correct the below error and it says it is installed I am using Windows 10. python version 3.10.0, apio version 0.6.7 apio verify gives me this error. Any suggestions? **** Deleted details as it causes clutter ****
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Looks like you're not the only one...it appears to be an issue with Python 3.10. I used Python 3.8.2, so maybe try Python 3.8 to see if that helps? I'm hoping that apio will be updated in the near future to work without having to fight with specific Python versions.
@thalanayarmuthukumar5472
@thalanayarmuthukumar5472 2 жыл бұрын
@@ShawnHymel Moving to python 3.8.2 solved the problem. Thanks for pointing this out
@MisterTime00
@MisterTime00 Жыл бұрын
Hi all, I ran into a problem at the 6:11 mark. For some reason when I run this command I get hit with the following error "ftdi_usb_find_all failed: -5 (libusb_get_device_list() failed)" any ideas? Thank you
@ChrisS-oo6fl
@ChrisS-oo6fl 2 жыл бұрын
Man you did such a detailed and comprehensive job at this tutorial but I still find myself hearing you speak with an adult voice from a peanuts cartoon. Wah whaa Wah. Dang... I’m obviously an extreme novice with anxiety that’s out of control.
@autarchex
@autarchex 2 жыл бұрын
All this stuff went way over all our heads at one point. Dive in!
@vernonstuff2566
@vernonstuff2566 Жыл бұрын
I'm getting an error around the 12:47 point with the "apio verify" command stating Error: module 'click' has no attribute 'get_terminal_size'. Any ideas where I've gone wrong?
@electronichome1153
@electronichome1153 Жыл бұрын
Have same one. Did you find a solution?
@vernonstuff2566
@vernonstuff2566 Жыл бұрын
@@electronichome1153 Nope, unfortunately nobody has responded so I've been dead in the water. Very disappointing!
@CurtisPurnell
@CurtisPurnell Жыл бұрын
I had this same error. Roll back to python 3.9.xx and install click version 8.0.4. Fixed the problem for me. However you will get annoying messages about pip and other software being out of date. Also try shawn's comment under CM MC's comment if this doesn't help. The problem is just python and other modules getting rid of certain dependencies in newer versions.
@parrotraiser6541
@parrotraiser6541 2 жыл бұрын
Those tools were for Windows. Are there Linux versions or equivalents?
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Yes, apio, yosys, etc. are cross-platform. They should work on macOS and most Linux flavors.
@ServitorSkull
@ServitorSkull 8 ай бұрын
Could use an update video. Versions are outdated and I'm running into error after error with toolchain setup and upload.
@piconano
@piconano 2 жыл бұрын
Can FPGAs be used as multiple core GPUs for Ai vision and neural networks? I know they use graphics cards with 1000's of cores, to do serious machine learning. Can an array of FPGs emulate these simple cores at the same speed? Just curious if they have the oomph to compete in that arena. I've only seen FPGAs in Oscilloscopes, PWM and signal generators. I'm sure they are used in many many other places. I haven't seen a lot of things, it doesn't mean they don't exist :)
@ShawnHymel
@ShawnHymel 2 жыл бұрын
You could, in theory, create GPU cores inside an FPGA. Keep in mind that a GPU has optimized hardware for doing SIMD operations, so an FPGA emulating a GPU would probably not be as efficient (energy or space-wise).
@po1nt1776
@po1nt1776 2 жыл бұрын
Theoretically yes. The issue is that silicons of GPUs are highly optimized for high frequencies and space. Really expensive FPGA could emulate modern GPU but would not reach the same speeds and efficiency. FPGAs are also used in thermal camera imaging, as cryptoaccelerators, in high performance network switches, in KVMs but mostly in prototyping phases of integrated circuits.
@piconano
@piconano 2 жыл бұрын
@@ShawnHymel Thanks for the explanation. I know not much but learning.
@piconano
@piconano 2 жыл бұрын
@@po1nt1776 👍
@sprytnychomik
@sprytnychomik 2 жыл бұрын
Yes. There was a video a while ago (can't find it anymore) of Nvidia's lab tour showing how 1080 ti was made. The lab was full of PC-looking FPGAs from Cadence simulating 1080ti. I doubt that it was running at 1080ti's speed but was for simulation and (functional) verification purpose only. After that step (and after tapeout) first silicon chips are made for further (electrical) verification.
@tanjiro3285
@tanjiro3285 2 жыл бұрын
💗💗💗💗
@rajdeep5126
@rajdeep5126 2 жыл бұрын
can anyone tell me the name of the FPGA used
@gacherumburu9958
@gacherumburu9958 2 жыл бұрын
👍👍
@Scwan15021983
@Scwan15021983 2 жыл бұрын
nice video but why r u not using xilinx vivado design suite?
@ShawnHymel
@ShawnHymel 2 жыл бұрын
I find that many of the proprietary vendor design tools can be intimidating to newcomers, so I wanted to show something simpler (and open source, if possible).
@Scwan15021983
@Scwan15021983 2 жыл бұрын
@@ShawnHymel yea right but for some newcomers is easyer to use one big good ide like vivado because most of the tools are intetegrated and u dont need to install everything manually and they working with each another better and it has more feature like IP Intergrator and so on i find vivando much better easyer and i am also a newcomer (opensource is not allways better) but anyway thx for all ur good videos 👍🙂
@ShawnHymel
@ShawnHymel 2 жыл бұрын
@@Scwan15021983 Makes sense. I prefer a couple of simpler tools to get started that don't present a thousand buttons/menus that I won't use (as a beginner) so I can focus on just the code. To each their own, I suppose :) I'm glad you're enjoying the series!
@Scwan15021983
@Scwan15021983 2 жыл бұрын
@@ShawnHymel thx 4 ur fast response u doing a really great job 👍 hope to see much more fpga stuff andso on 🙂
@tombouie
@tombouie 2 жыл бұрын
Thks awesome overview but the text command-line kinda made my eyes roll-up in the back of my head & brain freeze-up, Nevertheless !FPGA Rules!. Combinational/sequential digital logic circuit →[Real Person]→ HDL →[PFM]→ netlist for any&all FPGAs →[targeted PFM]→ particular FPGA Request: ?Could you focus on the-commonality between VHDL & Verilog languages so I can easily switch between them if need be? ex: not (Y, Z) ; or/nand/nor/xor/xnor (Z, X, Y) works in both VHDL & Verilog
@mustafaabdaal7528
@mustafaabdaal7528 2 жыл бұрын
Hey Shawn, really sorry to report this but as soon as I used zadig to change the driver to libusbk I lost control of my keyboard. I think it was also using the libusbk drivers and now it isn't responsive.. Any advice?
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Oh no! Zadig can be kinda dangerous if you overwrite the wrong driver :( Keyboard drivers should be fairly universal. If you can, open Device Manager and find the device entry for your keyboard. Select it > Properties > Driver tab. Click "Uninstall Device." This *should* delete the driver from your system. Unplug the keyboard and plug it back it. Hopefully, Windows will use the universal driver for it instead of the Zadig one. You might have to do this a few times or use Action > Scan for Hardware Changes (in Device Manager) to force Windows to update the driver.
@mustafaabdaal7528
@mustafaabdaal7528 2 жыл бұрын
@@ShawnHymel Thank you for the help. The scary part was this was my laptop's inbuild keyboard, not an external one hahah. It's all good now, I reinstalled the keyboard driver & retried zadig. This time everything worked as it should. I'm already finished with Intro to FPGA Part 3's full adder Assignment, really enjoying the course! :)
@ShawnHymel
@ShawnHymel 2 жыл бұрын
@@mustafaabdaal7528 Phew! Glad to hear you got it working :)
@Hybrid.Robotics
@Hybrid.Robotics 2 жыл бұрын
Hi Shawn! Everything was going great until I tried to upload to my icestick. Then, I get "Error: board icestick not connected" everytime I try doing "apio upload." I have tried all three of my USB ports with the same result. No other USB serial devices are plugged in. I do not know of anything I have done wrong. I have been following along with each step as you do it. Sometimes, I have to rewind and relisten to a few seconds but that is all. Do you have any idea what might be wrong? I am using a Core i3 laptop my sister sent to me and I do not know the history.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
What OS are you using? If Windows, open the Device Manager and see if there is a new COM port listed under "Ports (COM & LPT)" when you plug in the iCEstick.
@Hybrid.Robotics
@Hybrid.Robotics 2 жыл бұрын
@@ShawnHymel I have two libusbK devices - interfaces 0 and 1 when I plug it in.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
​@@Hybrid.Robotics Hmm..I only see one (interface 0). Do you get the same error if you enter "apio system --lsftdi" ?
@Hybrid.Robotics
@Hybrid.Robotics 2 жыл бұрын
@@ShawnHymel I get "Number of FTDI devices found: 1 Checking device: 0 Manufacturer: FTDI, Description: USB Serial Converter" It takes a long time for the command to complete.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
@@Hybrid.Robotics That looks right...it shouldn't take more than a few seconds. How long does it take to complete?
@AydinGokce9000
@AydinGokce9000 9 ай бұрын
W TUTORIAL
@cmmc1100
@cmmc1100 2 жыл бұрын
Hi, Did anyone else get the following error: "SCons import failed. Unable to find engine files in:Traceback" when >> apio verify? Windows 10 Pro 10.0.19044 Build 19044, Python 3.10.0 and apio version 0.7.6
@ShawnHymel
@ShawnHymel 2 жыл бұрын
It looks like until a new version of apio is released (to fix a lot of issues), you'll probably need to stick to Python 3.8 and apio 0.6.7. :-/
@cmmc1100
@cmmc1100 2 жыл бұрын
@@ShawnHymel Thanks Shawn! That was exactly the problem, I uninstalled 3.10 and went back to 3.8.2 and everything worked! Much appreciated.
@electronichome1153
@electronichome1153 Жыл бұрын
Stucked in 12:47, Error: module 'click' has no attribute 'get_terminal_size'
@electronichome1153
@electronichome1153 Жыл бұрын
Update: Just install latest apio version, in my case 0.8.1. It works with this one for me.
@pallavisrivastava5245
@pallavisrivastava5245 Жыл бұрын
@@electronichome1153 Thanks, its working for me too.
@phillipneal8194
@phillipneal8194 Ай бұрын
On my macos, you have to make a virtual environment and run everything inside that.
@terrybailey2769
@terrybailey2769 2 жыл бұрын
Can someone tell me how to do this, I installed python 3.8 on windows 10, which completed ok but I cannot call python it says it does not exist.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Did you make sure to add Python to PATH? I think there's an option for that at the beginning of the installation process.
@terrybailey2769
@terrybailey2769 2 жыл бұрын
@@ShawnHymel I have now found that option in the install for Python, thank you :) I also had to add the path to apio manually.
@triularity
@triularity 2 жыл бұрын
Some software facepalm moments: When using the lsftdi (i.e. "list ftdi") option, it has trouble "listing" them if there is more than one. And having an .ini file which doesn't use the standard INI format, as opposed to using a more generic extension, such as .conf, .cfg, or .rc. Yes, I'm being nitpicky, but why add confusion to software which is suppose to make things simpler.
@ShawnHymel
@ShawnHymel 2 жыл бұрын
Yeah...apio (at least the current version) isn't necessarily the most robust tool. It gets the job done for beginner projects, but you'll probably find that you'll quickly outgrow it to use the underlying tools directly.
@abdulkarim1902
@abdulkarim1902 2 жыл бұрын
why did you stop embedded linux tutorials ? please it was very helpful
@LittleRainGames
@LittleRainGames 2 жыл бұрын
I just saw a new video recently you sure its done? If it is, probably to make this.
@SunshineDynamicsLLC
@SunshineDynamicsLLC Жыл бұрын
Greeting everyone! I have run into a bit of a wall here and I would be very grateful for a nudge in the right direction. When I enter in the command 'apio system --lsftdi' as seen around minute 7 of this video, it outputs that my connected FTDI device is described as a dual RS232-HS. I originally suspected there to be a problem when I got to the Zadig stage and two different devices with that name showed up on interface 0 and 1. I know that they belong to my icestick because they disappear when I disconnect it. I ignored this issue all the way up until it was time to upload and my fears where reinforced with a error saying the icestick was not plugged in. I have been searching the web for possible solutions for the past hour or so but to no avail. Please if, anyone has any information on this problem, I would be absolutely out of my mind with excitement for even the slightest clue about where I should be looking for solution. By the way, I would like to thank Shawn from the bottom of my heart for such a fantastic video series!
@fabianzachs68
@fabianzachs68 Жыл бұрын
Hi, I had the same issue. When you do `apio system --lsftdi`, the description doesnt match whats in the video/what apio expects. So to fix this, you need to find the apio/resources/boards.json file and change the description in there. To find this, i did: `pip3 show apio`. That gives you the "location" of apio. `cd` there and run `find . -name "boards.json"`. Edit the file's "icestick" description entry. Change it from "Lattice FTUSB Interface Cable" to "Dual RS232-HS". Then retry `apio upload`
@SunshineDynamicsLLC
@SunshineDynamicsLLC Жыл бұрын
@@fabianzachs68 Hello Sir, I very much appreciate you taking the time to write this. I had to sideline this project, as I hadn't had a clue where to look for an answer. It has made my day knowing that I can again resume my FPGA quest. It truly brings joy my heart to know that there is such a wonderful community out there who take the time to share their knowledge with others for the sake of uplifting the curious minds of the world. I hope that many more people find your comment useful and I will report back here after I get a chance to test this approach out to add anything that may be useful. Anyways, I wish you the absolute best of luck in your projects and in your life. Thank you again 🙂
@JeffreyBaker-es3ej
@JeffreyBaker-es3ej Жыл бұрын
@@fabianzachs68 Thanks so much! I was about to give up for the night. (-;
@evplasmaman2
@evplasmaman2 Жыл бұрын
@@fabianzachs68 Thanks for the solution!
@shefiroth12
@shefiroth12 Жыл бұрын
@@fabianzachs68 thank you so much
@vahidvaisi4392
@vahidvaisi4392 2 жыл бұрын
apio verify gives me python related error. Please, advise.
@ltweed1
@ltweed1 2 жыл бұрын
I also had an error on apio verify. "Error: module 'click' has no attribute 'get_terminal_size'". I have not found an actual solution yet
@powervr
@powervr Жыл бұрын
why my commentary was removed?...with newer icestick there is another description of the usb stick...so this does not work at least with the last (and older ) apio. there is an way... but they dont want you to know about it...weird...why they changed that description... still weird... :D in linux, in windows... does not work the apio like it's... with the newer icestick, apio looks for the lattice older description and he gets this: Manufacturer: FTDI, Description: Dual RS232-HS not the older lattice description... so... no firestick avaiable, when it's just an change of the description find it on the boards.json somewhere in your's installation... look for the entry for the iCE40-HX1K. In that entry there is the object named ftdi that has a child string named desc. Compare this name to the output that you get from apio system --lsftdi. If it is different, update it to ensure it is identical. I copied the text of joel help... and it helped me... now it's working.
@scottlarson1548
@scottlarson1548 2 жыл бұрын
You knew this couldn't be a "run this program to program the FPGA". No, like everything these days it's layers upon layers of programs.
@antoniocolella1445
@antoniocolella1445 2 жыл бұрын
lattice semi stock keeps on doubling thru out the years.I see them getting bought out like AMD buying Xilinx.
@josearrasola7236
@josearrasola7236 2 жыл бұрын
I guess I’m the only one who interested in learning !
@SaarN1337
@SaarN1337 2 жыл бұрын
Having fun flattering yourself, bud?
@rickh6963
@rickh6963 2 жыл бұрын
Really, that's the best comment you can come up with? Why did you bother?
@marsrocket
@marsrocket 2 жыл бұрын
10,000+ views and you’re the only one. Right.
@DeeegerD
@DeeegerD 2 жыл бұрын
Bored to tears.
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 16 МЛН
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 15 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 31 МЛН
Get Started With FPGAs and Verilog in 13 Minutes!
13:30
Doctor Volt
Рет қаралды 29 М.
This is the BEST Board to Learn RISC-V Assembly.
17:52
Low Level Learning
Рет қаралды 79 М.
Xilinx DLC9LP: Программатор FPGA
19:49
NICKBEL
Рет қаралды 10 М.
Software Emulators vs FPGAs
27:08
What's Ken Making
Рет қаралды 267 М.
Driving a VGA Display?! Getting started with an FPGA! (TinyFPGA)
11:26
iCEBreaker breaks the ice with open source FPGA tools
11:40
scanlime
Рет қаралды 12 М.
EEVblog #496 - What Is An FPGA?
37:44
EEVblog
Рет қаралды 753 М.
Very Best And Good Price Smart Phone
0:42
SDC Editing Zone 9K
Рет қаралды 217 М.
AMD больше не конкурент для Intel
0:57
ITMania - Сборка ПК
Рет қаралды 478 М.
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 250 М.
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 1,7 МЛН