-
Notifications
You must be signed in to change notification settings - Fork 247
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
Wrong clock pin rule for iCESugar-Pro boards? #689
Comments
I'm also unsure if this is why icestudio seems to never successfully be able to make code that runs on my board... |
@benitoss @jojo535275 , could you check if there is something wrong with this pin of icesugar pro? |
You are right, the correct Pin is P6. The problem is that I don't have the FPGA board so, I never tested it. |
Thanks a lot @benitoss !, @GhostDog98 there is a new WIP a https://downloads.icestudio.io download it and check if all works! tell us please! |
Yes it now says P6, but even the simplest examples don't seem to work still. I'm not sure if this is an issue with icestudio or myself, but uploading the .bit file compiled by icestudio (pictured below) using icesprog fails to produce any signal on A8, but if i use the official makefiles and modify the icesugar pro "blink" script to use the same pin A8, it does output a signal for A8. This makes me think that either the makefile that icestudio is using, or the toolchain is out of date or not configured correctly... I'll investigate more if I can but I'm not too familiar with icestudio's internals. |
@GhostDog98 In the case of ECP5 boards the option of export the bit file doesn't work. The exported bit file is not compatible with any ECP5 boards. That export option only is valid with IC40 boards. If you don't use the FT2232H , FT232H or USB blaster JTAG programmers, you have to take the bit file by hand in the directory where the source code is generated internally and program the board with the icesprog application. Anyway, the best solution is generating a new board configuration with icesprog as the way to program the board. |
Hi, I'm not sure I understand what you are saying about getting the source file internally and programming with icesprog, as I believe that's what I'm doing. I go into the project folder, then into /ice-build/Untitled/ and use icesprog on As for the command line tool I am using, I simply built it from source from here, but iCESugar offers its own binary, which seems nearly identical that also works for me. (here) Edit: Here's a youtube video of what i am doing just for clarities sake: https://youtu.be/EA-Q8V5Py8c |
@GhostDog98 when you program the board with hardware.bit file typing iceprog hardware.bit you are writing the SPI Flash and it spends a lot of time. use the command dapprog xxx.bit (program to flash) or dapprog xxx.svf (program to SRAM) So the problem using the iceprog application with Icestudio is that you have to create the SVF format to program the board to SRAM I recomend to use an external JTAG programmer to avoid this issue |
Apologies for the delay, as I have never really gotten deep into programming tools like this. I can't for the life of me figure out what option in icesprog allows me to write to the SRAM. Additionally, while using dapprog/openocd to write the files does make things faster (only about 25 seconds), it does not make the files compiled by icestudio work, so I see little point in adding another upload tool if the files that icestudio generates don't work yet for this board... I'm honestly very lost on what to do at this stage... 😅 Let me know if there's anything specific I can do to help. When I wake up tomorrow, I'll see if I've left a jtag adapter in any of my storage bins. Thanks for the continued help ❤️ |
Hi All, I've managed to identify a workaround, and subsequently the issue, but have been unable as of yet to fix it within icestudio due to my lack of familiarity in the programs git repo structure... My workaround: Now we should have: Run make This shows that the issue is in whatever Edit: I've just seen that this wiki page says that APIO is responsible for compiling bitstreams from the VHDL sources, should I open an issue in that repository then? It appears others in that repository have already identified one issue, but that has been merged, so it shouldn't be the issue... |
Follow up: Installing apio development version through the icestudio menu fixes builds, but switching back to the "stable" version makes the stable version work now?!?!? I'm going to lose what's left of my sanity at this rate... |
@GhostDog98 , Icestudio is the application to generate the structure of your Verilog code. Therefore in Icestudio you select first the board (usually asociated with a programmer in case of several ECP5 boards) |
Hi! if there is no feedback in some days, i'll close this issue. If you need to reopen it later, do it! Thanks! |
I'm closing the issue for not having reply. If you need help about it , reopen it please! |
According the icestudio, pin P3 is the clk input pin:
However, according to the docs the clock is connected to pin P6
This is confirmed by the schematic file:
I may be misreading this, but it appears to be incorrect.
The text was updated successfully, but these errors were encountered: