Comments (5)
I have seen the iceprog code.
In the function flash_wait() there is a 250ms delay (at the end):
usleep(250000);
I have changed it to 10ms:
usleep(10000);
The result is that now it only takes 4 sec on the Laptop A:
$ time sudo ./iceprog scicad1.bin
init..
cdone: high
reset..
cdone: low
flash ID: 0x20 0xBA 0x16 0x10 0x00 0x00 0x23 0x12 0x67 0x21 0x23 0x00 0x21 0x00 0x43 0x04 0x11 0x11 0x5F 0x7D
file size: 32220
erase 64kB sector at 0x000000..
programming.............
reading..
VERIFY OK
cdone: high
Bye.
real 0m3.495s
user 0m0.004s
sys 0m0.088s
I will test on the laptop B and tell you the result
from icestorm.
I have changed it to 10ms:
usleep(10000);
Ok, that makes sense of course.
The 250 ms are a copy&paste error. I've now set to to 1 ms.
from icestorm.
Great! thanks! :-) I`ve also tested the icestick connected directly to the USB port: I got the same result than using an USB hub and an extension cable: 33sec (just for having more information). So the bug seems to be that copy&paste error
Thanks a lot Clifford! ;-)
from icestorm.
I just tested this fix, turning the value to 1ms, and it does bring the programming time down from 33.707s to 1.957s in my i5 laptop (with Fedora). Great find Juan!!! 👍
from icestorm.
Value set to 1ms: It takes 2.1sec. Awesome!
from icestorm.
Related Issues (20)
- enhancement request: Support the NVCM HOT 4
- Targetting 8k-tq144:4k but missing pins 65 and 66 which are bound to ICE_CDONE and ICE_CREST. HOT 2
- Not able to use both PLLs of iCE40-HX4K HOT 5
- enhancement request: Add git tags
- iceprog takes 165secs to program 111kB into UPduino with FT232H HOT 3
- RS-232 on ice40 UP5k
- Broken website URL HOT 1
- UP5K: embedded block RAM clock edge/polarity
- Errors when running post-synthesis simulation examples HOT 3
- Wrong spelling of 'documentation' in the GitHub description
- Installation on Ubuntu 22.04.1
- Add support for iCE65 devices? HOT 6
- icebram incompatible with new memory_libmap HOT 13
- 'initial begin' bit order vs assigning value on clock cycle HOT 2
- Lattice HX8K Breakout Board. Can not upload HOT 4
- Can't find ice FTDI usb device On Ubuntu 22.04
- Hacked Website HOT 4
- iceprog sram programming not consistent with Lattice application notes
- [SUGGESTION] Add support for Radiant-style names. HOT 1
- TPU? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icestorm.